Quantcast
Viewing all articles
Browse latest Browse all 7696

Quotes in Alter Proc Script

Not sure if I am in the right place for this question.  In all my installations of SQL Server, whether 2005 or 2008R2, when I script a stored proc as an ALTER TO the script SSMS produces always includes,

EXEC

dbo.sp_executesql@statement=N'

and I end up with a procedure full of crazy quotes that I have to keep correct or my statement fails when I try to run it.  Another developer came to the company and his scripts do not have the EXEC  dbo.sp_executesql @statement = N' with all the double quoting, etc. that has to be maintained.  Is there some way I can change my SSMS so it creates these scripts like this new developer?


Lee Markum


Viewing all articles
Browse latest Browse all 7696

Trending Articles