MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #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: 5
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 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,549 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 15 h 26 m 8 sec
Reputation Power: 634
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: 5
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: 5
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 online now
Modding: Oracle MsSQL Firebird
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,401 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 h 31 m 52 sec
Reputation Power: 255
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


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway