Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXEC %%DatabaseEx(Name = @dbname).SetCompatibility(Level = @input_cmptlevel)
- -- does not return any result
- select *
- from sys.procedures
- where [name] like '%DatabaseEx%'
- -- Note: database @dbname may not exist anymore
- -- Change compatibility level
- -- If invoke gets error, exception will abort this proc.
- EXEC %%DatabaseEx(Name = @dbname).SetCompatibility(Level = @input_cmptlevel)
Add Comment
Please, Sign In to add comment