Guest User

Untitled

a guest
Jun 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. EXEC %%DatabaseEx(Name = @dbname).SetCompatibility(Level = @input_cmptlevel)
  2.  
  3. -- does not return any result
  4. select *
  5. from sys.procedures
  6. where [name] like '%DatabaseEx%'
  7.  
  8. -- Note: database @dbname may not exist anymore
  9. -- Change compatibility level
  10. -- If invoke gets error, exception will abort this proc.
  11. EXEC %%DatabaseEx(Name = @dbname).SetCompatibility(Level = @input_cmptlevel)
Add Comment
Please, Sign In to add comment