0

Is it possible to use BulkCopy for copying data from a table variable to Real table (SQL table) where both schema are identical?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Binu Bhasuran
  • 468
  • 1
  • 4
  • 9

2 Answers2

0

Are you looking for this

insert into realTable(col1,col2) select t1.col1,t1.col2 from variableTable as t1
Akshay
  • 1,831
  • 1
  • 18
  • 22
0

Try this

select * into RealTable from yourTableVariable
Krishnraj Rana
  • 6,516
  • 2
  • 29
  • 36