kejpa said:I guess the easiest way is to use backup/restore feature of SQL server.
Management Console window should help you, if not SQL server Books online is your friend.
HTH
/Kejpa
mike55 said:Stop your SQL SERVER using the Service Manager, Go to the Microsoft SQL Server folder in program files. Open the MSSQL folder and then the Data folder. Copy your two files, - _Log, _Data - and move to a new machine.
Copy the two files into the exact folders in the new machine, verify that they are not readonly ( go into file properties). Open SQL Server and navigate down to the Databases folder. Right click and select All tasks, Attach Database. Use the button supplied to navigate to the two files you copied over and hey presto your database is now on the new machine.
Mike55
mike55 said:Stop your SQL SERVER using the Service Manager, Go to the Microsoft SQL Server folder in program files. Open the MSSQL folder and then the Data folder. Copy your two files, - _Log, _Data - and move to a new machine.
Copy the two files into the exact folders in the new machine, verify that they are not readonly ( go into file properties). Open SQL Server and navigate down to the Databases folder. Right click and select All tasks, Attach Database. Use the button supplied to navigate to the two files you copied over and hey presto your database is now on the new machine.
Mike55
miwaypro said:Is that possible for the database file to store in different folder, instead of the "data" folder?
mike55 said:Stop your SQL SERVER using the Service Manager, Go to the Microsoft SQL Server folder in program files. Open the MSSQL folder and then the Data folder. Copy your two files, - _Log, _Data - and move to a new machine.
Copy the two files into the exact folders in the new machine, verify that they are not readonly ( go into file properties). Open SQL Server and navigate down to the Databases folder. Right click and select All tasks, Attach Database. Use the button supplied to navigate to the two files you copied over and hey presto your database is now on the new machine.
Mike55
PlausiblyDamp said:You would use the restore option if you had previously backed up the database, if you have just copied the files the the attach option is the one to use.