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.
| Author |
Topic |
|
mistryvipulh
Starting Member
4 Posts |
Posted - 2005-04-29 : 06:02:18
|
| i m creating a temporary table from a master table. the auto increment property of the primary key of master table is set to true.now i want to insert same record from the temporary table to the same master table with new primary key autoincremented automatically.i m doing this coding in VB.NET. i can't use dataset for it. i want direct insertion from temporary table to master table. how i could do that ?thanks |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-04-29 : 06:52:18
|
| insert mastertable(fld1, fld2, fld3) select fld1, fld2, fld3 from temptblDon't include the id column in the list.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|