all groups > sql server connect > may 2004 >
You're in the

sql server connect

group:

multiple sessions when using ADO



multiple sessions when using ADO Maryam Teimourian
5/29/2004 11:11:02 PM
sql server connect: H
I have an application that uses an ADOConnection named CONNECTION1 and an ADODataset.The dataset fetches a record for editing it.This dataset has no ConnectionString and its connection is the CONNECTION1.After opening the dataset and editing record (befor posting it) I execute a Stord Procedure to update another record in another table with CONNECTION1.EXECUTE
After opening the dataset I see a row in Management -> Current Activity -> Process Info in EnterPrise Manager.And After CONNECTION.EXECUTE statement I see 2 rows in Enterprise Manager
I do all data modification by one ADOConnection in Delphi5 but SQL SERVER 2000 do these modification by separate SPIDs (sessions)
How can I prevent this
Dose ADOConnection or ADODataset have any property to prevent that? Or should I do anything in SQL SERVER
RE: multiple sessions when using ADO rboyd NO[at]SPAM onlinemicrosoft.com
6/1/2004 8:16:35 PM
You may not be able to prevent it. ADO and ODBC, for that matter, will
spawn connections as they see fit. In most cases it does this because the
first SPID is in the middle of some process that has not completed, so the
second SPID is necesary to perform any other task. Normally this does not
cause any problems.

Rand
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button