|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, July 20, 2012 12:51 PM
Points: 322,
Visits: 351
|
|
I did like the article in general, although if I wanted a really fast method to transfer databases > 2 GB, I would not use this method. sp_attach is a good way to transfer databases when downtime isn't the primary concern, although in the environment I work in, we would not be able to use it. When we need to move a database from one server to the other with as little downtime as possible, we replicate as often as possible before the transfer. Then we take the old server down after one last replication and restore it to the other server. The setup for this process takes a long time, although we can get away with downtime less than 5 minutes. With sp_attach, the file copy would take a long time.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, March 27, 2013 9:28 AM
Points: 86,
Visits: 7
|
|
What kind of replication are you talking about? Sounds pretty much complicated. I consider the article's approach useful because of its simplicity. Not only the LAN may transfer a detached db. If the LAN is old and slow, an auxiliary removable hard disk or jazz unit also may transfer it, and the time saved would be considerable.
quote:
I did like the article in general, although if I wanted a really fast method to transfer databases > 2 GB, I would not use this method. sp_attach is a good way to transfer databases when downtime isn't the primary concern, although in the environment I work in, we would not be able to use it. When we need to move a database from one server to the other with as little downtime as possible, we replicate as often as possible before the transfer. Then we take the old server down after one last replication and restore it to the other server. The setup for this process takes a long time, although we can get away with downtime less than 5 minutes. With sp_attach, the file copy would take a long time.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
|
|
Hi there
From memory here, I didnt "title" the article so the SSC crew gave it one :) Fair comment though, I have a few client sites that required 24x7, and attaching and de-attaching is not suitable. To get around this we could: a) replicate (can be complicated and you need to be 100% sure the schema is identical b) log ship (very fast) c) script schema, read-only prod, and populate new server via linked server routines (no keys)
the swap as need be at the business layer.
Cheers
Chris
Chris Kempster www.chriskempster.com Author of "SQL Server Backup, Recovery & Troubleshooting" Author of "SQL Server 2k for the Oracle DBA"
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 2:58 AM
Points: 44,
Visits: 99
|
|
Nice article. I'd like to see more practical ones such as this. One small point - timestamp. If you're moving tables between servers then you may get duplicate timestamp data when attaching. Timestamps are meant to be unique to a server.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 12:22 PM
Points: 192,
Visits: 111
|
|
great article from Chris Kempster! I like his approach of divide into 3 methods with t/sql code. It is quite useful for my environment, since most files are < 2 gb due archiving periodically. I did not know that there is a way to take a database off-line with [exec sp_dboption N'mydb', N'offline', N'true']. thanks -D
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, November 02, 2012 7:05 AM
Points: 75,
Visits: 446
|
|
I would like to suggest that the article should have included you basic backup and restore as your first choice for moving databases. There is no down time on your source system and I'm not sure that a detach, copy, and attach is that much faster than a backup and restore.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 2:09 PM
Points: 436,
Visits: 353
|
|
nice article... I like the comment of "articles I write will focus on the 'command line' (namely Query Analyser) to provide DBA’s with a reference point to turn back to when the GUI is not available for whatever reason." I'm old enuff to remember when this was Sybase, and it was ALL command line 
Regards,
Joe Burdette hanesbrands.com
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, February 14, 2013 2:07 AM
Points: 126,
Visits: 123
|
|
Great article! Very informative. Thanks so much for taking the time to write this up. As I am about to move a database myself, it's quite timely.
One minor, even picky point: the term is actually "detach." There is no such word as "de-attach."
http://dictionary.reference.com/search?q=detach
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, November 02, 2012 7:05 AM
Points: 75,
Visits: 446
|
|
What am I missing here??? I don't see that these techniques as good a simple backup and restore which has no downtime? Where is the evidence that they are any faster?
|
|
|
|