SQL Recipes
A FREE cookbook for SQL queries and examples
Register FAQ Search Today's Posts Mark Forums Read

General DB Chat If it relates to databases ... write about here.

Go Back   SQL Recipes a FREE cookbook of SQL queries and examples > SQL queries and examples > General DB Chat

Reply
 
LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 07-02-2008, 05:27 PM
coyotemrh coyotemrh is offline
Junior Member
 
Join Date: Jul 2008
Posts: 1
coyotemrh is on a distinguished road
Unhappy New SQL Statement without re-opening connection

I have an sql routine that is pretty slow. I think the problem is that everytime I run the update, the open is re-establishing the server connection.
Anyway to keep the server connection open? Kind of like a requery command, but requery only refreshes the data as I understand it ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-03-2008, 07:04 AM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 91
ben has disabled reputation
Default Re: New SQL Statement without re-opening connection

What RDBMS are you using?
Do a search for "Persistent" connection in your manual.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-26-2008, 09:18 AM
Unregistered
 
Posts: n/a
Default Re: New SQL Statement without re-opening connection

Quote:
Originally Posted by coyotemrh View Post
I have an sql routine that is pretty slow. I think the problem is that everytime I run the update, the open is re-establishing the server connection.
Anyway to keep the server connection open? Kind of like a requery command, but requery only refreshes the data as I understand it ...

Have you used "Begin Tran" and "Commit Tran" in your SQL routine???

Thanks
Sandesh S
Microsoft SQL Server
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright (c) 2006-2008 SQL Recipes

1 2 3 4 5 6 7 8