dbTalk Databases Forums  

How to move a database

microsoft.public.sqlserver.setup microsoft.public.sqlserver.setup


Discuss How to move a database in the microsoft.public.sqlserver.setup forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bob123
 
Posts: n/a

Default How to move a database - 02-27-2010 , 08:10 AM






Hi,

What is the easiest way to move
a database (data files and log files) from
one location to another (same server)
for SQL Server 2008.

Thanks in advance

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: How to move a database - 02-27-2010 , 12:28 PM






bob123 (bob123 (AT) gmail (DOT) com) writes:
Quote:
What is the easiest way to move
a database (data files and log files) from
one location to another (same server)
for SQL Server 2008.
ALTER DATABASE MOFIDY FILE.

See Books Online for details.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #3  
Old   
bob123
 
Posts: n/a

Default Re: How to move a database - 02-28-2010 , 03:38 AM



OK thanks

"Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> a écrit dans le message de news:
Xns9D2CC632151C2Yazorman (AT) 127 (DOT) 0.0.1...
Quote:
bob123 (bob123 (AT) gmail (DOT) com) writes:
What is the easiest way to move
a database (data files and log files) from
one location to another (same server)
for SQL Server 2008.

ALTER DATABASE MOFIDY FILE.

See Books Online for details.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:
http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #4  
Old   
Larry Law
 
Posts: n/a

Default Re: How to move a database - 03-01-2010 , 02:57 PM



Hi

You can detach the database and simply copy the mdf, ldf files to a the new
server

"bob123" <bob123 (AT) gmail (DOT) com> wrote

Quote:
Hi,

What is the easiest way to move
a database (data files and log files) from
one location to another (same server)
for SQL Server 2008.

Thanks in advance


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.