TSQL Insert Transaction Log Filling up
Müssen einige Testdaten generieren. Dieser Einsatz ist 800.000 x 1.000. Ich weiß viel, aber dies ist eine echte Anwendung, bei der der Zufall eine berechnete Zahl ist.
Wie kann ich das aufteilen, damit das Transaktionsprotokoll nicht voll wird?
insert into sIDcrossMatch
select
docSVsys1.sID, docSVsys2.sID, Abs(Checksum(NewId())) % 100 As RandomInteger
from docSVsys as docSVsys1
join docSVsys as docSVsys2
on docSVsys1.sID <> docSVsys2.sID
where docSVsys1.sID < 1000
order by docSVsys1.sID, docSVsys2.sID
Es wird eine eingefügtdocSVsys1.sID
ohne das Transaktionsprotokoll auszufüllen.