MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 18th, 2003, 11:39 PM
Rubal Rubal is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 81 Rubal User rank is Lance Corporal (50 - 100 Reputation Level)Rubal User rank is Lance Corporal (50 - 100 Reputation Level)Rubal User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 2 h 19 m 22 sec
Reputation Power: 10
Moving SQL Db from one Server to another

Hi -

I have a database running on a server and its approx 50 MB. How can u mode the entire database to another server with all its tables, data and login details.

Please let me know all possible ways.

Thanks
__________________
Rubal Jain
Webspiders Interweb Pvt. Ltd. & Brainus Networks
http://www.it2ecom.com | http://www.brainus.net
Server Management | Dedicated Servers | Reseller Hosting
Experienced, Qualified Techs | 24/7 Support Centers in India
Helm Premium Partners | Email : sales@brainus.net

Reply With Quote
  #2  
Old November 18th, 2003, 11:52 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 22 m 8 sec
Reputation Power: 4445
You can use DTS to copy the entire database, including logins from the old system. Use the "copy objects and data" mode.

Reply With Quote
  #3  
Old November 18th, 2003, 11:55 PM
Rubal Rubal is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 81 Rubal User rank is Lance Corporal (50 - 100 Reputation Level)Rubal User rank is Lance Corporal (50 - 100 Reputation Level)Rubal User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 2 h 19 m 22 sec
Reputation Power: 10
Hi Doug -

I did it the same way - But It gives error and says Failed to do it ..

Reply With Quote
  #4  
Old November 18th, 2003, 11:58 PM
Rubal Rubal is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 81 Rubal User rank is Lance Corporal (50 - 100 Reputation Level)Rubal User rank is Lance Corporal (50 - 100 Reputation Level)Rubal User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 2 h 19 m 22 sec
Reputation Power: 10
Is there is any other possible way to do that.

Reply With Quote
  #5  
Old November 19th, 2003, 03:41 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,527 pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 1 Day 3 h 19 m 49 sec
Reputation Power: 537
Detach the database, copy files to the other server and Attach.
Works better that DTS.

Reply With Quote
  #6  
Old November 20th, 2003, 04:13 AM
jluke-b jluke-b is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: italy
Posts: 5 jluke-b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Rubal
Try this procedure
1) Terminate all connection to the db U want to move, setting from enterprise manager the db in 'single user mode'.
2) Keep trace of the files'names constituting your db (extention mdf (data file) ,and ldf (log file))
3) From sql query analyzer , user master, Detach the above mentioned db with the system stored procedure sp_detach_db 'dbName',true
4)From windows explorer select and copy db files to the target unit
5)From query analizer in the new instance of your db (as master), Use sp_attach_db 'dbName',
'path to data file (remember .mdf)',
'path to log file (remember .ldf)'.
Now you have moved your db from a machine to the other and it should perfectly working...
Try and ... Good Luck form Jluke-b

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Moving SQL Db from one Server to another

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap