You are here: Lock table problem « MsSQL Server « IT news, forums, messages
Lock table problem

Posted by Sandy on 12/06/05 16:27

Hi

I want to lock a table using JDBC as I want to perform some query's (read
and write) in exclusive mode. Different threads will be executing the same
code simultaneously. I am using the following statements

Statement stmt = connection.createStatement();
stmt.executeUpdate("lock table STATUS_TBL in EXCLUSIVE mode");

but am getting the following error
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect
syntax near 'STATUS_TBL'.


can somebody tell the correct syntax for the lock table statement.

Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация