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 

TAdoDataSet and Indexes

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





PostPosted: Wed Feb 09, 2005 9:50 pm    Post subject: TAdoDataSet and Indexes Reply with quote



I am having some difficulity in managing indexes. I am not having any
trouble creating or dropping indexes but I am having a problem with
refreshing whether the indexes exist or not.

I am using a servier side cursor so that I can use the seek method and after
I create a new index and then issue a GetIndexNames my tstring list is not
updated with my new index. The same happens in reverse when I delete and
index.

The only way that I have gotten the list to refresh is opeing a different
access table or closing the app and restarting it.

So far I have tried AdoDataSet1.Refresh, closing the AdoConnection1 and then
reopening the AdoDataSet1 and a varitey of different combinations between
the two but nothing seems to work any ideas?


Back to top
Jeff Howard
Guest





PostPosted: Mon Feb 14, 2005 5:06 pm    Post subject: Re: TAdoDataSet and Indexes Reply with quote



Thanks that did the trick but do you have any idea why the GetIndexNames
method does not give updated information for newley created or deleted
indexes?

Jeff


"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote

Quote:

trouble creating or dropping indexes but I am having a problem with
refreshing whether the indexes exist or not.

I am using a servier side cursor so that I can use the seek method and
after
I create a new index and then issue a GetIndexNames my tstring list is not
updated with my new index. The same happens in reverse when I delete and
index.

The only way that I have gotten the list to refresh is opeing a different
access table or closing the app and restarting it.

You could try getting at the indexes with OpenSchema
AdoConnection1.OpenSchema(adSchemaIndexes,
VarArrayOf([Unassigned, Unassigned, Unassigned, Unassigned,
'YourTableName']), TadoTable2)

--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



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.