Jump to content
The mkiv Supra Owners Club

ODBC driver for windows - question regarding holdlock


MrRalphMan

Recommended Posts

Hi all,

 

I am using a DSN less connection created within an Access db via VBA.

This is accessing a Sybase database via an ODBC connection.

 

I have been told that I cannot run my queries this way anymore as the windows ODBC driver uses a holdlock on the table, so even for a read only operation it locks the table.

I've locked the table for up to 45 mins before.. Oops.

 

Anyone know how to stop this happening?

 

Many Thanks,

 

Paul.

Link to comment
Share on other sites

Well the connection is set up for read only and I'm not sure what to look for in the ODBC Driver.

 

All in all, why is a MS product so poo that ti want to lock a whole table for a select. If you need to lock a table that way it should be down to the user.

 

 

Thanks for the reply though.

Link to comment
Share on other sites

  • 2 weeks later...

Hi all,

 

Thanks for the advice, does this get set in the SQL statement?

I've been talking to our DBA's and they cannot get it to work without locks.

I know locks are there for a reason, but if I lock our live reporting DB again for 20+ mins, I'll get shot... :(

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.