azwaan
Programmer
- Jan 11, 2002
- 42
hi..
i have a periodic job running on a table. the job script includes a transaction. there is a separate .NET application accessing the table for data reads. due to the very large frequency of data reads, i need to avoid blocking by the job. how can i achieve this?
the following is a sample script.. which i use to test this scenario.. i have noticed that despite using the various isolation levels, the .NET application is blocked from reading data and times out.
SET TRANSACTION ISOLATION LEVEL READ COMMITTED ;
declare @count as int;
BEGIN TRANsaction;
SET @count=1;
WHILE @count<100
BEGIN
Update MasterVersion set VersionID= VersionID +1 ;
WAITFOR DELAY '00:01';
END
COMMIT transaction;
GO
any suggestions?
i have a periodic job running on a table. the job script includes a transaction. there is a separate .NET application accessing the table for data reads. due to the very large frequency of data reads, i need to avoid blocking by the job. how can i achieve this?
the following is a sample script.. which i use to test this scenario.. i have noticed that despite using the various isolation levels, the .NET application is blocked from reading data and times out.
SET TRANSACTION ISOLATION LEVEL READ COMMITTED ;
declare @count as int;
BEGIN TRANsaction;
SET @count=1;
WHILE @count<100
BEGIN
Update MasterVersion set VersionID= VersionID +1 ;
WAITFOR DELAY '00:01';
END
COMMIT transaction;
GO
any suggestions?