Click here to Skip to main content
15,895,880 members
Home / Discussions / Database
   

Database

 
QuestionHow to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
S.Lalitha21-Jul-05 6:51
S.Lalitha21-Jul-05 6:51 
AnswerRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Rob Graham21-Jul-05 8:06
Rob Graham21-Jul-05 8:06 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
ToddHileHoffer21-Jul-05 9:57
ToddHileHoffer21-Jul-05 9:57 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Rob Graham21-Jul-05 10:11
Rob Graham21-Jul-05 10:11 
AnswerRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Anonymous21-Jul-05 22:14
Anonymous21-Jul-05 22:14 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
AmmuRaj21-Jul-05 22:55
AmmuRaj21-Jul-05 22:55 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Rob Graham22-Jul-05 5:10
Rob Graham22-Jul-05 5:10 
GeneralADO 2.8 Connection Object Closing SQL Server Connection Pin
QuintesV21-Jul-05 5:12
QuintesV21-Jul-05 5:12 
Hi All,

I execute the following code:

con.Open "server=(local);database=pubs;uid=sa;pwd=apwd;driver=sql server;app=testapp"
MsgBox "Click ok to close connection"
con.Close

Once I all the con.close, it takes approximately 1 minute for the connection to the sql server to be released. I have verified this by doing a sp_who2 in query analyser and by looking at connections in the perf mon.

I am having this problem with C++ using ADO.net via smartpointers, and C# using ado.net. The apps are not using connection pooling, and my simplest test above involves only the above code actually running, i.e. no other apps are running

Can anyone tell me why the connection is so slow to release, and how i can resolve this?

Thanks in advance,
Q

Quintes
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
Rob Graham21-Jul-05 5:46
Rob Graham21-Jul-05 5:46 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
QuintesV21-Jul-05 21:10
QuintesV21-Jul-05 21:10 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
Rob Graham22-Jul-05 10:54
Rob Graham22-Jul-05 10:54 
GeneraldataReader not executing properly Pin
WetRivrRat21-Jul-05 3:54
WetRivrRat21-Jul-05 3:54 
GeneralRe: dataReader not executing properly Pin
Rob Graham21-Jul-05 6:22
Rob Graham21-Jul-05 6:22 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 9:49
WetRivrRat22-Jul-05 9:49 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 10:42
Rob Graham22-Jul-05 10:42 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 10:48
WetRivrRat22-Jul-05 10:48 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 11:13
Rob Graham22-Jul-05 11:13 
GeneralHelp About Working with DataBases Pin
korso_rogan20-Jul-05 23:21
korso_rogan20-Jul-05 23:21 
QuestionHow can i clear all database connection via t-sql script Pin
m.rastgar20-Jul-05 20:28
m.rastgar20-Jul-05 20:28 
AnswerRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah21-Jul-05 4:10
Alomgir Miah21-Jul-05 4:10 
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar21-Jul-05 11:59
m.rastgar21-Jul-05 11:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 5:59
Alomgir Miah22-Jul-05 5:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 10:02
Alomgir Miah22-Jul-05 10:02 
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar22-Jul-05 12:17
m.rastgar22-Jul-05 12:17 
Questionhow to serialize (save) object into SQL Server? Pin
maaaxwell20-Jul-05 16:02
maaaxwell20-Jul-05 16:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.