558

ISOLATION LEVEL in SQL Server 2000

Salutare. Problema mea suna cam asa:am schimbat nivelul de blocare prin:SET TRANSACTION ISOLATION LEVEL SERIALIZABLEstiu ce e cel mai inalt nivel. Am pornit o tranzactie care contine un select si un insert tare simplu:BEGIN TRANSACTION set dateformat dmy declare @iddoc int if exists(select IDDoc from Rut.dbo.TabCodeDoc where ExecDate='15.02.2005' and Doc='Dispozitie') select @iddoc=IDDoc from Rut.dbo.TabCodeDoc where ExecDate='15.02.2005' and Doc='Dispozitie'else Begin insert into Rut.dbo.TabCodeDoc(ExecDate,Doc) values('15.02.2005','Dispozitie) select @iddoc=max(IDDoc) from Rut.dbo.TabCodeDoc end COMMIT TRANSACTIONSET TRANSACTION ISOLATION LEVEL READ COMMITTED Tranzactia nu a ajuns la sfirstiul ei, adica sql statement-ul nu s-a executat in intregime si accesul la tabel s-a blocat. Care e solutia? Toate tabele le pot accesa in afara de TabCodeLog. Am incercat sa-l streg, dar apare ceasul si ma arunca cu Time out expired. Tabelul contine 2 rinduri.
0