开发者

Finding the database name from tsql script

开发者 https://www.devze.com 2023-01-13 03:09 出处:网络
Is it possible to programmatically find the database context from a tsql script? ie the context that changes when you add a 开发者_StackOverflowUSE .I ask because I am not using a USE, and would like

Is it possible to programmatically find the database context from a tsql script? ie the context that changes when you add a 开发者_StackOverflowUSE . I ask because I am not using a USE, and would like to find the database name the script is running on.


select db_name()
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号