Copy Data (SQL Database) into SQL 2000 Server

  • Hi...I have a SQL Database on a CD, and want to 'copy' into SQL 2000 server ...how do i do this? Thanks

  • If your data is allready in a SQL server format, it is easy:

    Hust copy the data on disk & use sp_attach_db

    EXECUTE sp_attach_db @dbname    = N'test_db',

              @filename1 = N'c:\program files\microsoft sql server\mssql\data\test_db.mdf',

              @filename2 = N'c:\program files\microsoft sql server\mssql\data\test_db_log.ldf'

    GO

    Jan

  • Don't forget to take off the Read-Only properties from the file after copying onto the server. Otherwise, you may end up with Read-Only database....

  • Thanks All!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply