dbTalk Databases Forums  

Indexes on SQL2000i

comp.databases.btrieve comp.databases.btrieve


Discuss Indexes on SQL2000i in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Smith
 
Posts: n/a

Default Indexes on SQL2000i - 11-12-2004 , 07:27 AM






Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database within
SQL2000i. I can look at the table structure etc but I cannot see any
information relating to the indexes. The properties state that there are 5
indexes. This is also confirmed by BtrSearch where I can also see how the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index names.

Any ideas how I can either get the index names out of SQL 2000i or get the
index names programatically?

Cheers

Chris



Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-12-2004 , 03:43 PM






In the Pervasive Control Center, right click on the table and select
"Tasks/Edit Table Design". This window will provide the index names.

If this isn't quite so useful to you, then I have a DDF printing utility that
may be helpful. It takes the DDF definitions, reads them from the Btrieve
layer, and prints out (to screen, but it can also be sent to a file or to the
printer) the data file definitions. I believe the registered version will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Quote:
Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database within
SQL2000i. I can look at the table structure etc but I cannot see any
information relating to the indexes. The properties state that there are 5
indexes. This is also confirmed by BtrSearch where I can also see how the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index names.

Any ideas how I can either get the index names out of SQL 2000i or get the
index names programatically?

Cheers

Chris


Reply With Quote
  #3  
Old   
Chris Smith
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-15-2004 , 07:55 AM



Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the indexes
exist as I can see the structure in BtrSearch but the actual indexes names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how to obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote

Quote:
In the Pervasive Control Center, right click on the table and select
"Tasks/Edit Table Design". This window will provide the index names.

If this isn't quite so useful to you, then I have a DDF printing utility
that
may be helpful. It takes the DDF definitions, reads them from the Btrieve
layer, and prints out (to screen, but it can also be sent to a file or to
the
printer) the data file definitions. I believe the registered version will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database within
SQL2000i. I can look at the table structure etc but I cannot see any
information relating to the indexes. The properties state that there
are 5
indexes. This is also confirmed by BtrSearch where I can also see how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index names.

Any ideas how I can either get the index names out of SQL 2000i or get
the
index names programatically?

Cheers

Chris




Reply With Quote
  #4  
Old   
Bill Bach
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-15-2004 , 09:56 AM



If you don't see them, then they are defined by Btrieve, but NOT by the DDF's.
You may be able to add the index definitions from the Edit Table Design
function. However, this tool is known to be quite flaky, so I would STRONGLY
recommend making a backup of your DDF's before starting, and periodically as you
successfully complete each index.

You can get a copy of the free DOS-based FPrint from
www.goldstarsoftware.com/download.asp -- the purchased version is fairly cheap
and offers a few more options, product support, and true Win32 operations.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Quote:
Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the indexes
exist as I can see the structure in BtrSearch but the actual indexes names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how to obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41952EB6.4A2476F (AT) cncdsl (DOT) com...
In the Pervasive Control Center, right click on the table and select
"Tasks/Edit Table Design". This window will provide the index names.

If this isn't quite so useful to you, then I have a DDF printing utility
that
may be helpful. It takes the DDF definitions, reads them from the Btrieve
layer, and prints out (to screen, but it can also be sent to a file or to
the
printer) the data file definitions. I believe the registered version will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database within
SQL2000i. I can look at the table structure etc but I cannot see any
information relating to the indexes. The properties state that there
are 5
indexes. This is also confirmed by BtrSearch where I can also see how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index names.

Any ideas how I can either get the index names out of SQL 2000i or get
the
index names programatically?

Cheers

Chris



Reply With Quote
  #5  
Old   
Chris Smith
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-16-2004 , 02:56 AM



Bill,

Would adding the indexes via the Edit Table Design function mess up any
indexes defined by Btrieve? For instance if by some coincidence the index
names were the same etc would the DDF index overwrite the Btrieve index?

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote

Quote:
If you don't see them, then they are defined by Btrieve, but NOT by the
DDF's.
You may be able to add the index definitions from the Edit Table Design
function. However, this tool is known to be quite flaky, so I would
STRONGLY
recommend making a backup of your DDF's before starting, and periodically
as you
successfully complete each index.

You can get a copy of the free DOS-based FPrint from
www.goldstarsoftware.com/download.asp -- the purchased version is fairly
cheap
and offers a few more options, product support, and true Win32 operations.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the indexes
exist as I can see the structure in BtrSearch but the actual indexes
names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how to
obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41952EB6.4A2476F (AT) cncdsl (DOT) com...
In the Pervasive Control Center, right click on the table and select
"Tasks/Edit Table Design". This window will provide the index names.

If this isn't quite so useful to you, then I have a DDF printing
utility
that
may be helpful. It takes the DDF definitions, reads them from the
Btrieve
layer, and prints out (to screen, but it can also be sent to a file or
to
the
printer) the data file definitions. I believe the registered version
will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database
within
SQL2000i. I can look at the table structure etc but I cannot see
any
information relating to the indexes. The properties state that
there
are 5
indexes. This is also confirmed by BtrSearch where I can also see
how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index names.

Any ideas how I can either get the index names out of SQL 2000i or
get
the
index names programatically?

Cheers

Chris





Reply With Quote
  #6  
Old   
Bill Bach
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-16-2004 , 06:16 PM



If you are in "UNLINKED" mode (see lower right corner), then the changes will
impact the DDF's ONLY.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Quote:
Bill,

Would adding the indexes via the Edit Table Design function mess up any
indexes defined by Btrieve? For instance if by some coincidence the index
names were the same etc would the DDF index overwrite the Btrieve index?

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:4198D1E0.5D6CE16F (AT) cncdsl (DOT) com...
If you don't see them, then they are defined by Btrieve, but NOT by the
DDF's.
You may be able to add the index definitions from the Edit Table Design
function. However, this tool is known to be quite flaky, so I would
STRONGLY
recommend making a backup of your DDF's before starting, and periodically
as you
successfully complete each index.

You can get a copy of the free DOS-based FPrint from
www.goldstarsoftware.com/download.asp -- the purchased version is fairly
cheap
and offers a few more options, product support, and true Win32 operations.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the indexes
exist as I can see the structure in BtrSearch but the actual indexes
names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how to
obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41952EB6.4A2476F (AT) cncdsl (DOT) com...
In the Pervasive Control Center, right click on the table and select
"Tasks/Edit Table Design". This window will provide the index names.

If this isn't quite so useful to you, then I have a DDF printing
utility
that
may be helpful. It takes the DDF definitions, reads them from the
Btrieve
layer, and prints out (to screen, but it can also be sent to a file or
to
the
printer) the data file definitions. I believe the registered version
will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database
within
SQL2000i. I can look at the table structure etc but I cannot see
any
information relating to the indexes. The properties state that
there
are 5
indexes. This is also confirmed by BtrSearch where I can also see
how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index names.

Any ideas how I can either get the index names out of SQL 2000i or
get
the
index names programatically?

Cheers

Chris




Reply With Quote
  #7  
Old   
Chris Smith
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-17-2004 , 07:17 AM



Bill,

I am in Linked mode...Being fairly new to Btrieve and Pervasive what does
this mean?

Will adding indexes here mess up the Btrieve indexes?

If this is the case can you point me towards a good concise guide for using
the Btrieve API from Visual Basic.

Many thanks,

Chris Smith

"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote

Quote:
If you are in "UNLINKED" mode (see lower right corner), then the changes
will
impact the DDF's ONLY.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill,

Would adding the indexes via the Edit Table Design function mess up any
indexes defined by Btrieve? For instance if by some coincidence the
index
names were the same etc would the DDF index overwrite the Btrieve index?

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:4198D1E0.5D6CE16F (AT) cncdsl (DOT) com...
If you don't see them, then they are defined by Btrieve, but NOT by
the
DDF's.
You may be able to add the index definitions from the Edit Table
Design
function. However, this tool is known to be quite flaky, so I would
STRONGLY
recommend making a backup of your DDF's before starting, and
periodically
as you
successfully complete each index.

You can get a copy of the free DOS-based FPrint from
www.goldstarsoftware.com/download.asp -- the purchased version is
fairly
cheap
and offers a few more options, product support, and true Win32
operations.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the
indexes
exist as I can see the structure in BtrSearch but the actual indexes
names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how to
obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41952EB6.4A2476F (AT) cncdsl (DOT) com...
In the Pervasive Control Center, right click on the table and
select
"Tasks/Edit Table Design". This window will provide the index
names.

If this isn't quite so useful to you, then I have a DDF printing
utility
that
may be helpful. It takes the DDF definitions, reads them from the
Btrieve
layer, and prints out (to screen, but it can also be sent to a
file or
to
the
printer) the data file definitions. I believe the registered
version
will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database
within
SQL2000i. I can look at the table structure etc but I cannot
see
any
information relating to the indexes. The properties state that
there
are 5
indexes. This is also confirmed by BtrSearch where I can also
see
how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index
names.

Any ideas how I can either get the index names out of SQL 2000i
or
get
the
index names programatically?

Cheers

Chris






Reply With Quote
  #8  
Old   
Chris Smith
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-17-2004 , 08:45 AM



In addition to this, I have just had the index names confirmed by the
Software developer whos data I am accessing.

Even though I now have the name I still cant set the index. Is this due to
the fact that they are not contatained within the DDF files?

Chris
"Chris Smith" <chris (AT) bitsltd (DOT) co.uk> wrote

Quote:
Bill,

I am in Linked mode...Being fairly new to Btrieve and Pervasive what does
this mean?

Will adding indexes here mess up the Btrieve indexes?

If this is the case can you point me towards a good concise guide for
using
the Btrieve API from Visual Basic.

Many thanks,

Chris Smith

"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:419A9889.D221F7CA (AT) cncdsl (DOT) com...
If you are in "UNLINKED" mode (see lower right corner), then the changes
will
impact the DDF's ONLY.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill,

Would adding the indexes via the Edit Table Design function mess up
any
indexes defined by Btrieve? For instance if by some coincidence the
index
names were the same etc would the DDF index overwrite the Btrieve
index?

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:4198D1E0.5D6CE16F (AT) cncdsl (DOT) com...
If you don't see them, then they are defined by Btrieve, but NOT by
the
DDF's.
You may be able to add the index definitions from the Edit Table
Design
function. However, this tool is known to be quite flaky, so I would
STRONGLY
recommend making a backup of your DDF's before starting, and
periodically
as you
successfully complete each index.

You can get a copy of the free DOS-based FPrint from
www.goldstarsoftware.com/download.asp -- the purchased version is
fairly
cheap
and offers a few more options, product support, and true Win32
operations.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the
indexes
exist as I can see the structure in BtrSearch but the actual
indexes
names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how
to
obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41952EB6.4A2476F (AT) cncdsl (DOT) com...
In the Pervasive Control Center, right click on the table and
select
"Tasks/Edit Table Design". This window will provide the index
names.

If this isn't quite so useful to you, then I have a DDF printing
utility
that
may be helpful. It takes the DDF definitions, reads them from
the
Btrieve
layer, and prints out (to screen, but it can also be sent to a
file or
to
the
printer) the data file definitions. I believe the registered
version
will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database
within
SQL2000i. I can look at the table structure etc but I cannot
see
any
information relating to the indexes. The properties state
that
there
are 5
indexes. This is also confirmed by BtrSearch where I can also
see
how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index
names.

Any ideas how I can either get the index names out of SQL
2000i
or
get
the
index names programatically?

Cheers

Chris








Reply With Quote
  #9  
Old   
Bill Bach
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-17-2004 , 06:54 PM



Yes. Go to Tools/Options and uncheck "Table Linked Mode" to switch to UNLINKED
mode. You must fix the DDF's. Better yet -- have the devceloper give you good
DDF's -- this would be a much better solution and would save you lots of time.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!



Chris Smith wrote:

Quote:
In addition to this, I have just had the index names confirmed by the
Software developer whos data I am accessing.

Even though I now have the name I still cant set the index. Is this due to
the fact that they are not contatained within the DDF files?

Chris
"Chris Smith" <chris (AT) bitsltd (DOT) co.uk> wrote in message
news:cnfj0v$nrj$1 (AT) news6 (DOT) svr.pol.co.uk...
Bill,

I am in Linked mode...Being fairly new to Btrieve and Pervasive what does
this mean?

Will adding indexes here mess up the Btrieve indexes?

If this is the case can you point me towards a good concise guide for
using
the Btrieve API from Visual Basic.

Many thanks,

Chris Smith

"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:419A9889.D221F7CA (AT) cncdsl (DOT) com...
If you are in "UNLINKED" mode (see lower right corner), then the changes
will
impact the DDF's ONLY.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill,

Would adding the indexes via the Edit Table Design function mess up
any
indexes defined by Btrieve? For instance if by some coincidence the
index
names were the same etc would the DDF index overwrite the Btrieve
index?

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:4198D1E0.5D6CE16F (AT) cncdsl (DOT) com...
If you don't see them, then they are defined by Btrieve, but NOT by
the
DDF's.
You may be able to add the index definitions from the Edit Table
Design
function. However, this tool is known to be quite flaky, so I would
STRONGLY
recommend making a backup of your DDF's before starting, and
periodically
as you
successfully complete each index.

You can get a copy of the free DOS-based FPrint from
www.goldstarsoftware.com/download.asp -- the purchased version is
fairly
cheap
and offers a few more options, product support, and true Win32
operations.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the
indexes
exist as I can see the structure in BtrSearch but the actual
indexes
names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how
to
obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41952EB6.4A2476F (AT) cncdsl (DOT) com...
In the Pervasive Control Center, right click on the table and
select
"Tasks/Edit Table Design". This window will provide the index
names.

If this isn't quite so useful to you, then I have a DDF printing
utility
that
may be helpful. It takes the DDF definitions, reads them from
the
Btrieve
layer, and prints out (to screen, but it can also be sent to a
file or
to
the
printer) the data file definitions. I believe the registered
version
will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database
within
SQL2000i. I can look at the table structure etc but I cannot
see
any
information relating to the indexes. The properties state
that
there
are 5
indexes. This is also confirmed by BtrSearch where I can also
see
how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index
names.

Any ideas how I can either get the index names out of SQL
2000i
or
get
the
index names programatically?

Cheers

Chris







Reply With Quote
  #10  
Old   
Leonard
 
Posts: n/a

Default Re: Indexes on SQL2000i - 11-20-2004 , 11:42 PM



On Tue, 16 Nov 2004 08:56:52 -0000, "Chris Smith"
<chris (AT) bitsltd (DOT) co.uk> wrote:

Quote:
Bill,

Would adding the indexes via the Edit Table Design function mess up any
indexes defined by Btrieve? For instance if by some coincidence the index
names were the same etc would the DDF index overwrite the Btrieve index?

Kind regards,

Chris Smith
I believe there is some confusion as to exactly what information is
stroed in a Btrieve file about the Btrieve file.
All that is stored (besides your records) in a Btrieve data file is:
1) Record length, 2) Variable records (y/n)
3) Key Offset and Length as well as 4) key data types.
The offset and legths are stored as 2 byte integers and the key data
type is stored as another byte. There are no "names" stored in the
file. Any byte not in a key is a byte... no data type associated.

Bill is correct, in linked mode if you make changes in the table
designer on the SQL side, the Btrieve file is modified accordingly,
e.g. adding a SQL index will add a Key to the file.
If your goal is to fix the DDFs then UNLINKED should be showing in the
bottom right corner of table designer.

Leonard

Quote:
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:4198D1E0.5D6CE16F (AT) cncdsl (DOT) com...
If you don't see them, then they are defined by Btrieve, but NOT by the
DDF's.
You may be able to add the index definitions from the Edit Table Design
function. However, this tool is known to be quite flaky, so I would
STRONGLY
recommend making a backup of your DDF's before starting, and periodically
as you
successfully complete each index.

You can get a copy of the free DOS-based FPrint from
www.goldstarsoftware.com/download.asp -- the purchased version is fairly
cheap
and offers a few more options, product support, and true Win32 operations.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Bill

I have looked in the PCC at the Edit table design and there is no
information present for the index names / strucutre. I know the indexes
exist as I can see the structure in BtrSearch but the actual indexes
names
are knowhere to be seen.

The DDF printing utility sounds useful. Can you let me know how to
obtain a
copy / license.

Kind regards,

Chris Smith
"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41952EB6.4A2476F (AT) cncdsl (DOT) com...
In the Pervasive Control Center, right click on the table and select
"Tasks/Edit Table Design". This window will provide the index names.

If this isn't quite so useful to you, then I have a DDF printing
utility
that
may be helpful. It takes the DDF definitions, reads them from the
Btrieve
layer, and prints out (to screen, but it can also be sent to a file or
to
the
printer) the data file definitions. I believe the registered version
will
display index names, as well as the fields included in there.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!


Chris Smith wrote:

Hello,

I am using OLEDB to access SQL2000i data from Visual Basic.

I have the ddf files and have sucessfully created the database
within
SQL2000i. I can look at the table structure etc but I cannot see
any
information relating to the indexes. The properties state that
there
are 5
indexes. This is also confirmed by BtrSearch where I can also see
how
the
indexes are segmented.

However to use the indexes in OLEDB, I need to know the index names.

Any ideas how I can either get the index names out of SQL 2000i or
get
the
index names programatically?

Cheers

Chris





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.