| | |
Identity Column Problem in MS SQL Server when moving data from using Bulk Copy
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2006
Posts: 38
Reputation:
Solved Threads: 0
Hi all,
God Bless U,
Thursday, October 19, 2006
first i am writing the my problem again......:!:
i am facing a problem in SQL Server. I am have a table given below..
------------------------------------------------
Table name is "A"
------------------------------------------------
1 Michle Administrator
2 John Consumer Finance Officer
3 Jackson Employer
4 Goeffery Empl0yer
------------------------------------------------
Here the identity column is the first one. Now if i delete the 2nd row the this table becomes like that
------------------------------------------------
Table name is "A"
------------------------------------------------
1 Michle Administrator
3 Jackson Employer
4 Goeffery Empl0yer
------------------------------------------------
Now i have an another table "B" having same structure (3 columns and first column is the identity column). Now if i move the all the data from table "A" to table "B" then the original seqeunce is distrubed the table "B" contains the data like this.
------------------------------------------------
Table name is "B"
------------------------------------------------
1 Michle Administrator
2 Jackson Employer
3 Goeffery Empl0yer
------------------------------------------------
but i need that what ever the first column is identity column but sequence of numbering must be same as the numbering in the table "A" to preserve the relationships.... like that...
------------------------------------------------
Table name is "B"
------------------------------------------------
1 Michle Administrator
3 Jackson Employer
4 Goeffery Empl0yer
------------------------------------------------
Notice:- I am moving data from Table "A" to Table "B" using Bulk Copy.... now what will be the solution in case of Bulk copy ...?
waiting for a good responce again from ur side. i will very thankful to you to solve my problem.
Thanks....
God Bless u By all means.:cheesy:
God Bless U,
Thursday, October 19, 2006
first i am writing the my problem again......:!:
i am facing a problem in SQL Server. I am have a table given below..
------------------------------------------------
Table name is "A"
------------------------------------------------
1 Michle Administrator
2 John Consumer Finance Officer
3 Jackson Employer
4 Goeffery Empl0yer
------------------------------------------------
Here the identity column is the first one. Now if i delete the 2nd row the this table becomes like that
------------------------------------------------
Table name is "A"
------------------------------------------------
1 Michle Administrator
3 Jackson Employer
4 Goeffery Empl0yer
------------------------------------------------
Now i have an another table "B" having same structure (3 columns and first column is the identity column). Now if i move the all the data from table "A" to table "B" then the original seqeunce is distrubed the table "B" contains the data like this.
------------------------------------------------
Table name is "B"
------------------------------------------------
1 Michle Administrator
2 Jackson Employer
3 Goeffery Empl0yer
------------------------------------------------
but i need that what ever the first column is identity column but sequence of numbering must be same as the numbering in the table "A" to preserve the relationships.... like that...
------------------------------------------------
Table name is "B"
------------------------------------------------
1 Michle Administrator
3 Jackson Employer
4 Goeffery Empl0yer
------------------------------------------------
Notice:- I am moving data from Table "A" to Table "B" using Bulk Copy.... now what will be the solution in case of Bulk copy ...?
waiting for a good responce again from ur side. i will very thankful to you to solve my problem.
Thanks....
God Bless u By all means.:cheesy:
![]() |
Similar Threads
- Identity Column Problem in MS SQL Server (MS SQL)
- SQL Server not running. (VB.NET)
- Loops in Sql Server Triggers and Stored Procedures (ASP.NET)
- SQL server connection (MS SQL)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Problem with OPENXML in UDF (MS SQL)
- SQL server error: 18452 - connection to SQL error (Windows NT / 2000 / XP)
Other Threads in the MS SQL Forum
- Previous Thread: Identity Column Problem in MS SQL Server
- Next Thread: Formatted Output in Stored Procedure
| Thread Tools | Search this Thread |





