Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

Newbie - Moving a table from one database to another

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Starfish - 01 Jul 2008 18:36 GMT
Hello, I'm very new with SQL. I wanted to find out if there was an easy way
to move (or even copy) a table from one database to another database (on the
same server). We are using SQL 2000.
Starfish - 01 Jul 2008 19:09 GMT
I just discovered, the server we are moving the table from is running SQL 6.5
- the server we are attempting to move the table to is running SQL 2000.

> Hello, I'm very new with SQL. I wanted to find out if there was an easy way
> to move (or even copy) a table from one database to another database (on the
> same server). We are using SQL 2000.
Linchi Shea - 01 Jul 2008 20:38 GMT
You can always give DTS Import/Export wizard a try. In Enterprise Manager,
right click on the server name -> All Tasks -> Import ...

Linchi

> I just discovered, the server we are moving the table from is running SQL 6.5
> - the server we are attempting to move the table to is running SQL 2000.
>
> > Hello, I'm very new with SQL. I wanted to find out if there was an easy way
> > to move (or even copy) a table from one database to another database (on the
> > same server). We are using SQL 2000.
Roy Harvey (SQL Server MVP) - 01 Jul 2008 20:41 GMT
First I would script the CREATE TABLE command in 6.5, and run it in
the target database on 2000.  The 6.5 management tool can generate the
script for you.

To move the data I suggest using the data import wizard, which will
build a DTS process to perform the transfer.

In SQL Server 2000's SQL Enterprise Manager, navigate to the database
where you want to create the table.  Right click on it, All Tasks,
Import Data.  For the source you will specify the 6.5 server, and the
appropriate database.  Since it is 6.5 you might have to try ODBC
instead of OLE DB.  As you proceed through the process specify the
table you already created on the target SQL Server 2000 server.  It is
worth realizing that toward the end of the wizard process you have the
option of saving your work so it can be run again, and modified, which
I always find to be a good idea.

Hope that is enough to get you started.

Roy Harvey
Beacon Falls, CT

>Hello, I'm very new with SQL. I wanted to find out if there was an easy way
>to move (or even copy) a table from one database to another database (on the
>same server). We are using SQL 2000.

>I just discovered, the server we are moving the table from is running SQL 6.5
>- the server we are attempting to move the table to is running SQL 2000.
[quoted text clipped - 4 lines]
>> to move (or even copy) a table from one database to another database (on the
>> same server). We are using SQL 2000.
Starfish - 02 Jul 2008 18:44 GMT
Your directions were perfect. Thank you!

> First I would script the CREATE TABLE command in 6.5, and run it in
> the target database on 2000.  The 6.5 management tool can generate the
[quoted text clipped - 30 lines]
> >> to move (or even copy) a table from one database to another database (on the
> >> same server). We are using SQL 2000.
Nishchal07 - 03 Jul 2008 07:38 GMT
> Hello, I'm very new with SQL. I wanted to find out if there was an easy way
> to move (or even copy) a table from one database to another database (on the
> same server). We are using SQL 2000.

SQL SERVER - 2005 - Create Script to Copy Database Schema and All The
Objects - Stored Procedure, Functions, Triggers, Tables, Views, Constraints
and All Other Database Objects

Following quick tutorial demonstrates how to create T-SQL script to copy
complete database schema and all of its objects such as Stored Procedure,
Functions, Triggers, Tables, Views, Constraints etc. You can review your
schema, backup for reference or use it to compare with previous backup.

Step 1 : Start

Step 2 : Welcome Screen

Step 3 : Select One or Multiple Database
If Script all objects in the selected database checkbox is not selected it
will give options to selected individual objects on respective screen. (e.g.
Stored Procedure, Triggers and all other object will have their own screen
where they can be selected)

Step 4 : Select database options

Step 5 : Select output option

Step 6 : Review Summary

Step 7 : Observe script generation process

Step 8 : Database object script generation completed in new query window

Reference : Pinal Dave (http://www.SQLAuthority.com), All images are
protected by copyright owner SQLAuthority.com
Roy Harvey (SQL Server MVP) - 03 Jul 2008 12:03 GMT
>SQL SERVER - 2005 - Create Script to Copy Database Schema and All The
>Objects - Stored Procedure, Functions, Triggers, Tables, Views, Constraints
>and All Other Database Objects

The original poster was moving a table from a SQL Server 6.5 database
to a SQL Server 2000 database.

Roy Harvey
Beacon Falls, CT
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.