Hello All:
I posted a thread last week about this but just recently tried it.
I am on SQL Server 7.0 and need to attach a .mdb file. SQL Server 2000 is nice because it has a GUI option of attaching but not 7.0
So this is the procedure I used while logged in as 'sa' in MASTER:
EXEC sp_attach_db @dbname = N'FIRE',
@filename1 = N'c:\Fire_RMS\FIRE.mdf'
but I get this error:
Server: Msg 5172, Level 16, State 15, Line 1
The header for file 'c:\Fire_RMS\FIRE.mdf' is not a valid database file header. The FILE SIZE property is incorrect.
I assume this sp will create a db named 'FIRE'? Or do I need to create the DB first? Actually I did that but another error said that the DB was already created.
Any ideas?
Thanks,
Todd
I posted a thread last week about this but just recently tried it.
I am on SQL Server 7.0 and need to attach a .mdb file. SQL Server 2000 is nice because it has a GUI option of attaching but not 7.0
So this is the procedure I used while logged in as 'sa' in MASTER:
EXEC sp_attach_db @dbname = N'FIRE',
@filename1 = N'c:\Fire_RMS\FIRE.mdf'
but I get this error:
Server: Msg 5172, Level 16, State 15, Line 1
The header for file 'c:\Fire_RMS\FIRE.mdf' is not a valid database file header. The FILE SIZE property is incorrect.
I assume this sp will create a db named 'FIRE'? Or do I need to create the DB first? Actually I did that but another error said that the DB was already created.
Any ideas?
Thanks,
Todd