473,503 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i copy data

hi their,

How can i copy data in MS-SQL 2000 from one table to another with
different charactristic?
thanks

*** Sent via Developersdex http://www.developersdex.com ***
Jul 23 '05 #1
3 1404
Hi

It will depend on how different the structures are, and where the tables are
located!

Posting DDL and example data will help to answer your question see
http://www.aspfaq.com/etiquett**e.asp?id=5006. It is also useful to post
your current attempts at solving the problem.

If your table does not contain any data and there is a simple correlation
between columns then you can use the insert statement. See Books online for
more details on the statements available and their syntax.

INSERT INTO Table2 ( ColX, ColY, ColZ )
SELECT Col1, Col2, Col3
FROM Table1

If your tables are on different machines or if this is a regular task then
you may want to use DTS or possibly BCP.

John

"thaar al_taiey" <th***@hotmail.com> wrote in message
news:42**********@127.0.0.1...
hi their,

How can i copy data in MS-SQL 2000 from one table to another with
different charactristic?
thanks

*** Sent via Developersdex http://www.developersdex.com ***

Jul 23 '05 #2
dear john,
the problem is:
I have serveral sepearted MS-SQL 2000 DB's all with data and integrity
constraints. Now i create a single ms-sql DB to contain all old DB's.
How can i transfer the data to new tables with little losing?

v. thanks

thaar

*** Sent via Developersdex http://www.developersdex.com ***

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 23 '05 #3
Hi

You may be able to use the Import/Export Wizard which calls DTS to move the
objects and data, see
http://support.microsoft.com/default...-us;Q314546#11

Alternatively you can script the database9s) for an example see:
http://www.aspfaq.com/etiquette.asp?id=5006 and use BCP/Bulk Insert, even if
you are using DTS to transfer the data if may be worth creating the
structure of the new database first, possibly without any foreign keys and
then add them later.

John
"thaar al_taiey" <th***@hotmail.com> wrote in message
news:42**********@127.0.0.1...
dear john,
the problem is:
I have serveral sepearted MS-SQL 2000 DB's all with data and integrity
constraints. Now i create a single ms-sql DB to contain all old DB's.
How can i transfer the data to new tables with little losing?

v. thanks

thaar

*** Sent via Developersdex http://www.developersdex.com ***

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet
News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption
=----

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

42
5720
by: Edward Diener | last post by:
Coming from the C++ world I can not understand the reason why copy constructors are not used in the .NET framework. A copy constructor creates an object from a copy of another object of the same...
1
2208
by: masood.iqbal | last post by:
I have a few questions regarding overloaded typecast operators and copy constructors that I would like an answer for. Thanks in advance. Masood (1) In some examples that I have seen...
7
11600
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
1
3525
by: Rachel McConnell | last post by:
Hi, I am trying to import data using COPY, from a file containing thirty or so COPY commands each with 0 or more rows of data. Reason, I have a small data set I want to include into a database...
8
449
by: rKrishna | last post by:
I was trying to understand the real need for copy constructors. From literature, the main reason for redfinition of copy constructor in a program is to allow deep copying; meaning ability to make...
9
2230
by: hfinster | last post by:
Hello, could somebody please shed light on the following problem with g++ (4.03 and 3.3.6 as well)? Obviously, the copy constructor is not executed, if I assign the result of a function call to...
13
2438
by: Jeroen | last post by:
Hi all, I'm trying to implement a certain class but I have problems regarding the copy ctor. I'll try to explain this as good as possible and show what I tried thusfar. Because it's not about a...
22
3587
by: clicwar | last post by:
A simple program with operator overloading and copy constructor: #include <iostream> #include <string> using namespace std; class Vector { private: float x,y; public: Vector(float u, float...
6
2241
by: 2beagles | last post by:
So, I have not written c++ in quite a while and am trying to dig back in to it. I am running in to a weird situation and I am hoping someone might be able to explain it. I have a class...
3
12809
by: maheshkadam | last post by:
Hi friends I am new to perl so please guide me. I have one application which created backup log file every day.But it appends that file so you can see logs for different day in one file only. ...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.