TQuery, TDbGrid, SQLServer and Live Result set

Hi,

I am hooking a table to an SQL Server table, in order to gaurenteee the correct order is displayed I need to link a Query (do an Order By) to the grid as opposed to a TTable. Howevere, i also need a live result set. When I set RequestLife to True and run the query I get an error message saying Invalid fiedl name (it runs fine if RequestLive is False). Any ideas how I might achieve what I need?

Thanks, Tom.
boardtcAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kretzschmarCommented:
hi tom,

an order by clause causes that the query becomes readonly, you need a TUpdateSQL-Component as UpdateObject for the query to make it editable, but this works only with cachedupdates.

if you leave your email here, then i can send you a sample

meikl
0
boardtcAuthor Commented:
Meikl, I'll look into it here, thnak you. My emial if you get a chance is tomcorcoran@email.com

Cheers, Tom.
0
boardtcAuthor Commented:
Miekl, that worked well. Setting the InsertSQL and other stringlists is a little cumbersome but it works fine. Please answer to grade.

Tom.
0
kretzschmarCommented:
hi tom,

well, just sent you the res-file and
a little descripion, how let the ide create the
the statements for the UpdateSQL

glad that you get it work
good luck again

meikl ;-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.