 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jeff Howard Guest
|
Posted: Wed Feb 09, 2005 9:50 pm Post subject: TAdoDataSet and Indexes |
|
|
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
|
Posted: Mon Feb 14, 2005 5:06 pm Post subject: Re: TAdoDataSet and Indexes |
|
|
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 |
|
 |
|
|
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
|
|