Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
i am trying to export data from one table to anotherthe problem is like this :source table :person_idcommentscreatedatedestiny tableid (identity)person_idcommentscreatedatethe problem is with the id column on the destiny - i recive an error that i try to insert a null an i violate the key or something like thathow can over come this problem?i event went to the code and tried to somehow workaround and to do DTSDestintaion=1but i got error of duplicate keywhat to do>?thanks in advancepelegIsrael -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
is the source table and destiny table on the same server ? If so, why not just
insert into db2.dbo.destiny(...)select ...from db1.dbo.source
----------------------------------'KH'everything that has a beginning has an end
pelegk2
Aged Yak Warrior
723 Posts
Posted - 2006-02-15 : 06:24:23
ow ok i tried to do it with th e sql server tools not codethnaks anyway:)Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)