General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Hi Neighbor:
>>set relation to padl(alltrim(str(val(usr_pk))),5,'0') into userprefs
Yeah, thats what I was thinking of doing. Then create a compound index on the child thats that converts the integer key to char and concatenates the last name field. If I have set exact off then the seek will match the parent on the first half of the index leaving the second half to order the child table on last name.
>>The other alternative is to build the child cursor (without indexes) each >>time a user changes records in the parent table. If the user selected a >>different row, you could call the SP that builds the child cursor again. >>AfterRowColChange event.
That would mean excessive round trips to the server.
Thanx,
Charlie
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only