ADO's Connection.beginTran will lock SQL Server 6.5 
Author Message
 ADO's Connection.beginTran will lock SQL Server 6.5

Hello,

I need you help. I am developing application with SQL server 6.5 SP5a
and VB5.0 ADO 2.0. I notice when a clients has begin a transaction,
the whole SQL Server will be locked from other client's request, even
SELECT.

Do you have the same experience as mine? Any solution for me.

Regards,

Poon Chak Yau.



Sat, 08 Sep 2001 03:00:00 GMT  
 ADO's Connection.beginTran will lock SQL Server 6.5
Poon Chak Yau,

Perhaps you are hitting the blocking problem in tempdb.

What may be happening is that temporary stored procedures are being created
in tempdb inside the transaction (due to prepare statement option), this
will serialise access to tempdb.

You need to disable to 'generate stored procedure for prepare statement'
option.

--
Hope the above helps.

Tony Rogerson MCP, MS SQL Server MVP
Torver Computer Consultants Ltd
London, England.



Quote:
>Hello,

>I need you help. I am developing application with SQL server 6.5 SP5a
>and VB5.0 ADO 2.0. I notice when a clients has begin a transaction,
>the whole SQL Server will be locked from other client's request, even
>SELECT.

>Do you have the same experience as mine? Any solution for me.

>Regards,

>Poon Chak Yau.



Sat, 08 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ADO 2.0 connection to SQL Server 6.5

2. Locking in VB5 and SQL Server 6.5 using stored procs

3. SQL Server 6.5 Locking

4. Record Locking in MS SQL Server 6.5

5. Record Locking, SQL Server 6.5

6. Get Username or Computername after lock (or deadlock) errors from MS SQL server (7 or 6.5)

7. To many user connections with SQL Server 6.5

8. VB4/SQL Server 6.5 and Connections

9. Connection errors with Visual Basic 4 16-bit and SQL server 6.5 on a 3.11 platform

10. Creating ODBC connection to SQL Server 6.5 with VB4

11. DNS-Less Trusted Connection Discrepancy Solution with SQL Server 6.5 - Driver Conflict

12. DNS-Less Trusted Connection Discrepancy - Sql Server 6.5 -- VB 5.0

 

 
Powered by phpBB® Forum Software