BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Where to get index info for ADO dataset?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Bryan Dayton
Guest





PostPosted: Wed Aug 25, 2004 10:35 pm    Post subject: Where to get index info for ADO dataset? Reply with quote



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





PostPosted: Wed Aug 25, 2004 10:47 pm    Post subject: Re: Where to get index info for ADO dataset? Reply with quote



depends on the database ... which one are you using ?


Back to top
Bryan Dayton
Guest





PostPosted: Thu Aug 26, 2004 11:47 pm    Post subject: Re: Where to get index info for ADO dataset? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.