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 

Server-side cursor causes DB reconnect in MSSQL

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






PostPosted: Thu Apr 26, 2007 4:44 am    Post subject: Server-side cursor causes DB reconnect in MSSQL Reply with quote



We have an app that uses TAdoDataset and client-side cursors to access
SQL Server 2K for all queries except one. I noticed that whenever the
server-side query executes, every query that executes after that
causes a database connect before the query and a disconnect after the
query, even for the client-side cursors. This can cause a lot of
overhead.

We changed the server-side cursor to a client-side cursor and the
problem went away. But I'd still like to know what causes this
behavior, and if theres a way to keep the database connection
persistent?

Thanks,

Tom
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.