|
yogaboy -> RE: SQL Server Express? (10/29/2005 15:10:54)
|
There's a couple of ways you can move the data. The easiest (by far if you're a novice) is to attach and re-attach the database. Using Enterprise Damager if you right-click your database and look at the properties on the datafiles tab you can see where the files for your database are kept. It's almost 100% likely that the database is on 1 file with an .mdf extension, and it should have a counterpart with an .ldf extension that holds the log files. Using Query Analyzer, put in the follow commands exec sp_detach_db 'yourdatabasename' then take the files and move them to the new server and using QA put in the following commands exec sp_attach_db @dbname = 'yourdatabasename', @filename1 = 'c:\program files\microsoft sql server\mssql\data\yourdatabasename.mdf', @filename2 = 'c:\program files\microsoft sql server\mssql\data\yourdatabasename.ldf' obviously you need to substitute the filenames/database names/file paths, and if you're using a webhost then they will probably deal with the attaching of the database. If your host asks for a backup copy, then have a look in Books Online for how to set it up, but it's not so hard if you use Enterprise Damager, but the attach method is made for this type of situation.
|
|
|
|