Hello SAS Kiwi,
Thanks for your reply, please see code below...
/*APPEND TO AD_HOC DATA TO EXCLUDE FROM CI JOBS*/ LIBNAME Table1 OLEDB BULKLOAD=YES PROPERTIES=('Persist Security Info'=True 'Integrated Security'=SSPI 'Initial Catalog'=DBMart) OLEDB_SERVICES=NO PROMPT=NO DATASOURCE='DB1' PROVIDER=SQLOLEDB.1 SCHEMA=dbo ;
/*REMOVE DATA FROM THE AD-HOC FILE TO CORRECT MISTAKES*/ proc sql; delete from Table1.Ad_Hoc_Info where Field5 in ("L YEAR 1","L YEAR 2","L MISSING"); Quit;
Yes you are right the user is looking at just deleting rows, We deleted approx 3million records for this user via SQL Server Management Studio in the end, this took a few minutes to complete.
Through my testing I've not yet run the SAS delete to completion however through testing i've identified about 1,200,000 records for deletion and via monitoring this is deleting roughly 20,000 every 60 seconds so would take 1 hour to complete.
Many Thanks, Tom
... View more