Please help!

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 3
Reputation: niki4ko is an unknown quantity at this point 
Solved Threads: 0
niki4ko niki4ko is offline Offline
Newbie Poster

Please help!

 
0
  #1
Jul 8th, 2007
How can i copy Tables from mssql server from my computer to oder /from my server to oder/. The Data Bases are ready created i must put only the Tables to oder DB. Please can you tell me how?
Last edited by niki4ko; Jul 8th, 2007 at 9:58 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 149
Reputation: Geek-Master is an unknown quantity at this point 
Solved Threads: 6
Geek-Master's Avatar
Geek-Master Geek-Master is offline Offline
Junior Poster

Re: Please help!

 
0
  #2
Jul 8th, 2007
I am assuming that both databases are on the same SQL Server instance. If you want to transfer a table between databases, try using DTS if you are on SQL 2000. There should be a method for transferring database objects. I won't explain how to use DTS so you will have to go to Microsoft's website or Books Online.

Another method is to manually create a T-SQL script of the table structure. Run it against the other database and perform an insert command with the values being pulled in by a sub query.

  1. INSERT INTO <databaseB>..<tableA>
  2. (
  3. SELECT * FROM <databaseA>..<tableA>
  4. )

Make sure to replace the examples <...> with the actual DB objects. Also for this script to work, both tables must have the exact table structure.

I woudn't recommend using the SELECT INTO method which will create a table and SQL will guess what the data types are and you will have to manually add the constraints back.
If in doubt, reach into the trash can and remove the user guide.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 3
Reputation: niki4ko is an unknown quantity at this point 
Solved Threads: 0
niki4ko niki4ko is offline Offline
Newbie Poster

Re: Please help!

 
0
  #3
Jul 9th, 2007
The databases are on two different computers
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 149
Reputation: Geek-Master is an unknown quantity at this point 
Solved Threads: 6
Geek-Master's Avatar
Geek-Master Geek-Master is offline Offline
Junior Poster

Re: Please help!

 
0
  #4
Jul 9th, 2007
Well it really doesn't matter if the two databases are on different servers. All that you need to know is that you must have access to both servers. Then use DTS to copy the table object over.

good luck
If in doubt, reach into the trash can and remove the user guide.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: Please help!

 
0
  #5
Jul 10th, 2007
If its in the other server or system. You can link the server to your Server name and use the commands that geek master suggested.
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 3
Reputation: niki4ko is an unknown quantity at this point 
Solved Threads: 0
niki4ko niki4ko is offline Offline
Newbie Poster

Re: Please help!

 
0
  #6
Jul 10th, 2007
Thanks very much! It is all right
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the MS SQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC