troubleshooting Question

Rewriting of delete SQL script.

Avatar of Zack
ZackFlag for Australia asked on
DatabasesMicrosoft SQL ServerSQL
9 Comments1 Solution103 ViewsLast Modified:
Hi EE,

For the following code

begin tran

create table #UserList (fldUserName nvarchar(max) collate SQL_Latin1_General_CP1_CI_AS)
insert into #UserList (fldUserName) values

DELETE from tblPERMS_Incidents where Username_Incidents collate SQL_Latin1_General_CP1_CI_AS in (select fldUserName from #UserList)

drop table #UserList
rollback tran

Is there a method of rewriting this so I am not limited to deleting 999 rows at one time?

Any assistance is welcome.

Thank you.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros