Puiu Posted September 17, 2008 Posted September 17, 2008 Hello I have an application that sometimes requires database updates. however some stored procs updates must not be run on all the servers. I've tried something like: if @@servername = 'MyServer' begin alter proc MyProc ..... end But this doesn't work. I also tried using dynamic sql but also didn't work. Thanks Quote
Administrators PlausiblyDamp Posted September 17, 2008 Administrators Posted September 17, 2008 When you say it 'doesn't work' what does happen? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.