Monday
16Mar2009
moot modify scripting in SSMS: the never-modifying-modify-script
Alek Kirstein
Monday, March 16, 2009 at 9:15PM …a little gotcha for setting settings in SSMS, if you turn on the option to script an IF NOT EXISTS clause then this is what the modify stored procedure script comes out as below (just the first part pasted). Ouch! This will never modify anything and still return: Command(s) completed successfully.
/****** Object: StoredProcedure [dbo].[procMyProc] Script Date: 03/12/2009 10:08:11 ******/ SET GO SET GO IF BEGIN EXEC
…
…
…
—by Alek Kirstein – SupportSQL.com
View Printer Friendly Version
Email Article to Friend
Reader Comments