Hello, I have made a database in SQL Server 2005 Developer edition. I tried to attach it to a SQL Server 2005 Express Edition but I coundn't. I can attach and dettach it to the developer edition but I cannot do it to the express edition. When I am running the store procedure:
exec sys.sp_attach_single_file_db @dbname = 'LinGS', @physname = 'c:\LinGS.mdf'
I receive the following error:
File activation failure. The physical file name "C:\Documents and Settings\Kekakos Elias\My Documents\Visual Studio 2005\Projects\LinGS\LinGS_log.ldf" may be incorrect.
.Net SqlClient Data Provider: Msg 5123, Level 16, State 1, Line 1
CREATE FILE encountered operating system error 5(error not found) while attempting to open or create the physical file 'c:\LinGS_log.LDF'.
.Net SqlClient Data Provider: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'LinGS'. CREATE DATABASE is aborted.
Can someone help me how to attach this database?
Thanks in advance
ps. Now I cannot attach to the developer edition by running the following command:
exec sys.sp_attach_single_file_db @dbname = 'LinGS',
@physname = 'C:\Documents and Settings\Kekakos Elias\My Documents\Visual Studio 2005\Projects\LinGS\LinGS.mdf'
I receive the following error:
.Net SqlClient Data Provider: Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file "C:\Documents and Settings\Kekakos Elias\My Documents\Visual Studio 2005\Projects\LinGS\LinGS.mdf". Operating system error 5: "5(error not found)".
exec sys.sp_attach_single_file_db @dbname = 'LinGS', @physname = 'c:\LinGS.mdf'
I receive the following error:
File activation failure. The physical file name "C:\Documents and Settings\Kekakos Elias\My Documents\Visual Studio 2005\Projects\LinGS\LinGS_log.ldf" may be incorrect.
.Net SqlClient Data Provider: Msg 5123, Level 16, State 1, Line 1
CREATE FILE encountered operating system error 5(error not found) while attempting to open or create the physical file 'c:\LinGS_log.LDF'.
.Net SqlClient Data Provider: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'LinGS'. CREATE DATABASE is aborted.
Can someone help me how to attach this database?
Thanks in advance
ps. Now I cannot attach to the developer edition by running the following command:
exec sys.sp_attach_single_file_db @dbname = 'LinGS',
@physname = 'C:\Documents and Settings\Kekakos Elias\My Documents\Visual Studio 2005\Projects\LinGS\LinGS.mdf'
I receive the following error:
.Net SqlClient Data Provider: Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file "C:\Documents and Settings\Kekakos Elias\My Documents\Visual Studio 2005\Projects\LinGS\LinGS.mdf". Operating system error 5: "5(error not found)".