473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

copy table data from ane database to another

Hi..
I m using sql server standard edition. I want to copy table data of 's1' from 'test1.dbo' into another table 's2'
which is exist in another database 'test2.dbo'. I m using import option to copy table data and the operation is done successfully but whenever I open table 's2'I got only one record of 's1' instead of getting all the records of 's1'into that table. Second thing is that the column name 'id' contain some same numbers in both tables 's1' and 's2'. So I want to do that in 's2',the same data should not be replaced by 's1' data but copy those data from 's1' which are not available in 's2'. So how is that possible?

Thank u..
Jun 8 '11 #1
1 2067
ck9663
2,878 Expert 2GB
Try creating a T-SQL for your objective, rather than relying on import wizard. You will have more control on which data will be updated or inserted. Just use filter to address this.

Happy Coding!!!


~~ CK
Jun 9 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Sven | last post by:
I have a big problem with the Oracle DB Propagate Assistent, i try to copy tables (and data) between 2 databases with a drag 'n drop operation. Always I get the error-message that I have to create...
5
by: Peter CCH | last post by:
Let's say, I have Table1 and Table2, both with the exactly same structure and data in it, except that Table1.Field1 is empty in data but Table2.Field1 have data in it. How could I copy all the...
1
by: Peschello | last post by:
I am attempting to copy table data from our live production database to our development database. To do this, I need to specify the name of the database in addition to the table name. I'm running...
1
by: Tomek | last post by:
Hi, I'm new in C# programming. I received an order to create application with ODBC technology. Application seems to be simple, It should copy table from database, for example SQL server, to...
3
by: joemo2003 | last post by:
I try to copy one column of a table in excel, from top to end, so i use Worksheets("sheet1").Range("F6", Range("F6").End(xlDown)).Copy , but it come out "Application-defined or object-defined...
2
by: TaeMike | last post by:
Hello, I have some varchar(2000) fields in my tables, and they have a lot of "weird" characters in them including line break and carriage returns, etc. When I do a select, I see the entire string of...
1
by: Hamayun Khan | last post by:
hi Is it possible to copy single table from one sql server db to another db. I have two copies of same database. I deleted data from table from origional table. now i want to copy the table from...
7
by: viki123 | last post by:
I have 2 table in sql server freetrial and freetrial_backup, freetrial table contain startdate and enddate when enddate is over it should transfer all data to freetrial_backup table pls help...
2
by: amit tank | last post by:
Hi All, I Want To Copy Table Data From One Table To Another Both Table Name Are Same But in Other Database I Tried This SELECT * INTO DIMS1.dbo.MstCmp FROM DIMS.dbo.MstCmp where 1>2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.