SQL Server 2008 Management Studio не видит мою скопированную базу данных

434
fred karmally

Я скопировал свою базу данных (mdf и ldf файлы) с моего сервера в облако. Ранее я делал это с одного локального сервера на другой. Я поместил его в тот же каталог (данные MSQLSERVER /../../, подтвердил, что путь к данным в SQLServer таков. Но он не отображается в Management Studio. Это связано с разрешениями, правами собственности и т. Д. Или что-то другое?

Единственное, что есть на e: driver, и базы данных master и tempdb находятся в одном и том же каталоге на диске c.

0

1 ответ на вопрос

0
BBlake

There are a couple of possibilities, including file access permissions.

What seems to be more common in my experience is if you're trying to use the Attach Database wizard. In the wizard, Sql Server Management Studio can only see drives that are local to the computer it is running from. So, if you are using it to manage a remote server, you will not be able to attach pre-existing databases from files.

A couple ways around this are to remote desktop into the server and run it from there, or to use the CREATE DATABASE....FOR ATTACH command.