ALTER current database without using its name

前端 未结 3 1246
旧巷少年郎
旧巷少年郎 2021-02-18 15:52

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

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-18 16:49

    Actually something more like this is probably a little better if you're altering the current database:

    ALTER DATABASE CURRENT SET COMPATIBILITY_LEVEL = 90

提交回复
热议问题