 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bryan Dayton Guest
|
Posted: Wed Aug 25, 2004 10:35 pm Post subject: Where to get index info for ADO dataset? |
|
|
I've now switched to TBetterADO 4.04 and even though that product properly
populates TFieldDefs, neither TBetterADODataset nor Borland's own
TADODataset seem to populate TIndexDefs!?!
Programatically, how can I detect what is the primary key field for an ADO
dataset? Or if indeed, a table even has a primary key?... or any secondary
key(s)?
Bryan Dayton
Melbourne, Australia
|
|
| Back to top |
|
 |
Del Murray Guest
|
Posted: Wed Aug 25, 2004 10:47 pm Post subject: Re: Where to get index info for ADO dataset? |
|
|
depends on the database ... which one are you using ?
|
|
| Back to top |
|
 |
Bryan Dayton Guest
|
Posted: Thu Aug 26, 2004 11:47 pm Post subject: Re: Where to get index info for ADO dataset? |
|
|
I'm using MS SQL 7/2000 (Local host) on XP Pro. Connection string below:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=pubs;Data Source=BRYAN240
Authors table has two indexes: Primary plus a secondary on LName + FName,
but IndexDefs.Count = 0.
Bryan Dayton
"Del Murray" <Del.Murray (AT) CreditHawk (DOT) Net.NoSpam> wrote
| Quote: | depends on the database ... which one are you using ?
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|