I have a new 64bit sql 2005 server w/sp3 on Windows 2003 /sp2
I am trying to attach a sql 2000 database using the following sql statements i.e. without attaching the log file.
CREATE DATABASE Test
ON (FILENAME = 'D:\MSSQL\Data\Test_Data.MDF')
FOR ATTACH_REBUILD_LOG
I receive the following error: Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file "D:\MSSQL\Data\Test_Data.MDF". Operating system error 5: "5(Access is denied.)".
The account running the command is a domain user w/sysadmin rights. Also, tried running this under the 'sa' account with the same outcome.
Also tried running this stored procedure:
exec sp_attach_single_file_db @dbname= 'Test', @physname= 'D:\MSSQL\Data\Test_Data.MDF'
Received the same error message.
I know the files were cleanly detached and moved w/o a problem because I can attache the database if the log file exists. I need to test this other method as well and get it to work.
I am trying to attach a sql 2000 database using the following sql statements i.e. without attaching the log file.
CREATE DATABASE Test
ON (FILENAME = 'D:\MSSQL\Data\Test_Data.MDF')
FOR ATTACH_REBUILD_LOG
I receive the following error: Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file "D:\MSSQL\Data\Test_Data.MDF". Operating system error 5: "5(Access is denied.)".
The account running the command is a domain user w/sysadmin rights. Also, tried running this under the 'sa' account with the same outcome.
Also tried running this stored procedure:
exec sp_attach_single_file_db @dbname= 'Test', @physname= 'D:\MSSQL\Data\Test_Data.MDF'
Received the same error message.
I know the files were cleanly detached and moved w/o a problem because I can attache the database if the log file exists. I need to test this other method as well and get it to work.