|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Saturday, March 23, 2013 7:08 AM
Points: 5,
Visits: 44
|
|
Hello, all!!! I liked the post. A lot. And I have a question regarding filestream. How do I move a filestream datafile ? Can I move only one datafile instead of all of them al once ?
Thanks in advance from Argentina.
Ariel.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 8:44 AM
Points: 5,204,
Visits: 11,165
|
|
you need to move the folder contents under the folder path that contains the file stream data. Check books online for more info on the alter database command
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 8:29 AM
Points: 10,
Visits: 70
|
|
Hi, How would you handle moving a big database(say 200GB) to another drive with minimal time on a production server??
-- Regards, Karthik
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 8:44 AM
Points: 5,204,
Visits: 11,165
|
|
Whatever happens you will need to release the sql server handles on the disk file(s), what capacity do you have to copy 200gb of database files across the drives? You need to factor this time into the equation.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 8:29 AM
Points: 10,
Visits: 70
|
|
Just a thought... not sure if this would work.. but is there any software that can create another copy of these db files irrespective of the handles present on it.. so that once it copies (say upto 95%), we can use the process you mentioned in the post, and copying the left over 5% shouldn't take much time.
Can we do something like this?
Am just curious if this can be done. [http://lockhunter.com/ : This completely unlocks and deletes the files]
Is there anything which would copy the file even when there is a lock on it?
-- Regards, Karthik
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 2:17 AM
Points: 8,
Visits: 64
|
|
Nice article Pezza.
I went through a process just recently of renaming and moving a DB and used the old method of detach/attach, next time round I'll give this way a go.
Good work on another fine article.
Johnny
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 5:56 AM
Points: 159,
Visits: 193
|
|
john.knight-557608 (5/17/2013) Nice article Pezza.
I went through a process just recently of renaming and moving a DB and used the old method of detach/attach, next time round I'll give this way a go.
Good work on another fine article.
Johnny
Be careful when you use this method. With a "simple" detach/attach you lose the Transaction log. Better to do a backup and restore.....
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 5:56 AM
Points: 159,
Visits: 193
|
|
karthiks.840 (2/19/2013) Hi, How would you handle moving a big database(say 200GB) to another drive with minimal time on a production server??
-- Regards, Karthik
An option, should the SQL Server Versions be the same, is to mirror the database across to the new Server and once it is running as it should be, copy the users, Jobs, maintenance plans etc; across to the mirror from the principal. Once prepared, perform a switchover to the new machine and the move is complete with the very Minimum of downtime, measured in seconds. Users will be disconnected for the period of the switchover but that is easily planned for.
Of course, in order to do this you Need to be using the Enterprise Version of the Software.....
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 8:44 AM
Points: 5,204,
Visits: 11,165
|
|
kevaburg (5/17/2013) Better to do a backup and restore..... Hmm, no, as my article shows the best and supported way to move your data files is to use the alter database command. Doing this, the database is not detached from the server at all.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 8:44 AM
Points: 5,204,
Visits: 11,165
|
|
kevaburg (5/17/2013) Of course, in order to do this you Need to be using the Enterprise Version of the Software..... On a slightly different plain to my article as this is moving a database across instances. The synchronous mirroring in standard edition will achieve the same results.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|