开发者

Finding the database name from tsql script

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜