UPDATE S
SET dual_credit = 'Y'
FROM SDL_droplist S
JOIN XYZ Z
ON S.PIDM = Z.PIDM
DELETE X
FROM XYZ X
JOIN SDL_droplist S
ON X.PIDM = S.PIDM
AND S.dual_credit = 'Y'
ASKER
ASKER
ASKER
ASKER
<add
name="SDLT"
connectionString="Data Source=HASQLSERVER;Initial Catalog=StudentDropListP;Persist Security Info=True;User ID=droplistw;Password=******;Connection Timeout=120"
providerName="System.Data.SqlClient" />
<add
name="SDLT"
connectionString="Data Source=HASQLSERVER;Initial Catalog=StudentDropListP;Persist Security Info=True;User ID=droplistw;Password=******;Connection Timeout=12000"
providerName="System.Data.SqlClient" />
ASKER
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
if it shows full table scan, make sure you have a index on PIDM.
is the field PIDM numerical? [if yes, remove the quotes]
you may want to add this to the query:
AND ( DualCredit IS NULL OR DualCredit <> 'Y' )
next steps would be to look at the transaction log configuration and backup of the prod sql server...