更改数据库的文件名 [英] Change name of file of a database
本文介绍了更改数据库的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
由ALTER DATABASE修改名称,我们可以更改数据库的名称。但是不要重命名
物理文件的名称。怎么可能呢?
谢谢。
我尝试了什么:
hello
by ALTER DATABASE Modify Name, we can change name of a database. but the name of
phisical file don't be renamed. how could it be do?
thanks.
What I have tried:
<pre>change name of file of a database
推荐答案
你不应该:你不应该关心SQL数据库文件的物理名称。
但是......可以这样做:使用detach和attach方法重命名SQL Server物理数据库文件名 [ ^ ]
You shouldn't: you should not be concerned about the physical name of an SQL database file.
But ... it can be done: Rename SQL Server physical database file names using detach and attach method[^]
这篇关于更改数据库的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文