![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi all !!! I have a DTS package that it is failing with a "timeout expired" message when reading from SQL Server. I suspect about locking problems when some data combination happens, because the same package runs fine for most of the data sets I run it with, but with some ones fails. So the question is: can SQL Server be setup to not use locks at all ? I know that doing so will not introduce any problems neither in the DTS package nor in the applications using the database. thanks again, ant. |
#3
| |||
| |||
|
|
If you are just running selects you can use the NOLOCK hint or set the isolation level to READ UNCOMMITTED and it will not take out any locks. But it won't honor any either. That means you can get dirty reads. So if the data your reading is not mostly static or the values are important you have to use this option with extreme caution. But a Select only takes out shared locks anyway which are compatible with other shared locks. If your getting blocked then that means someone is changing the data your trying to read. I would find out why the other process is holding the locks for an extended period first. -- Andrew J. Kelly SQL MVP "Antonio Lopez Arredondo" <adog (AT) someplace (DOT) com> wrote in message news:ejIsZOPNEHA.740 (AT) TK2MSFTNGP12 (DOT) phx.gbl... hi all !!! I have a DTS package that it is failing with a "timeout expired" message when reading from SQL Server. I suspect about locking problems when some data combination happens, because the same package runs fine for most of the data sets I run it with, but with some ones fails. So the question is: can SQL Server be setup to not use locks at all ? I know that doing so will not introduce any problems neither in the DTS package nor in the applications using the database. thanks again, ant. |
![]() |
| Thread Tools | |
| Display Modes | |
| |