数据库是否已连接 [英] database is attached or not
本文介绍了数据库是否已连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我怎么能理解sql2008中该数据库是否已附加?
hello
how i can understand that database in sql2008 attached or not attached?
推荐答案
只写一个查询
just write a query
SELECT NAME FROM SYS.DATABASES WHERE NAME = 'Your database Name'
如果附有附件,您将获得记录,否则您将不会
IF it is attached you will get a record otherwise you won''t
这篇关于数据库是否已连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文