I need to run update script on current database (ALTER DATABASE...), but can\'t use implicit its name. Is possible to use some function to get current db name and u
ALTER DATABASE...
Actually something more like this is probably a little better if you're altering the current database:
ALTER DATABASE CURRENT SET COMPATIBILITY_LEVEL = 90