Bulk insert from db1 to db2
In a windows form I want to insert some data.
How do I get selected data from tblTest into tblTest2.
Both databases are on the same server.
I need the stored procedure code and the execut code from the form
DB1
tblTest
TestID Identity Specification NO
Test nvarchar(50)
Dato datetime
Belop money
DB2
tblTest2
TestID int Identity spec yes, increment 1, seed 1
Test nvarchar(50)
Test2 nvarchar(50)
Kundenr int
Ordredato datetime
MvaGrunnlag money
Vaar_Ref nvarchar(50)
thanks
Reidar
|