I want to read mdf ldf files another PC on my network. But another PC doesnt have a SQL Server. Only have .mdf
and .ldf
files
I want to attach my SQL Server 2008 from network. Is it possibble?
I want to read mdf ldf files another PC on my network. But another PC doesnt have a SQL Server. Only have .mdf
and .ldf
files
I want to attach my SQL Server 2008 from network. Is it possibble?
当然,与文件在本地时没有什么不同:
USE [master]
GO
CREATE DATABASE [X] ON
( FILENAME = N'\\NetworkPath\Share\X.mdf' ),
( FILENAME = N'\\NetworkPath\Share\X_log.ldf' )
FOR ATTACH
GO
虽然,如果可能的话,我建议将文件复制到本地机器。
只需复制 MDF 文件和 LDF 文件并粘贴到运行 SQL Server 的 SQL 数据库文件所在的机器位置,然后您可以使用 SSMS 附加它。