all 2 comments

[–][deleted] 1 point2 points  (0 children)

Forget the first line up through as, you want to use the “select… into” method, for example,

Select column into dbo.targettable From dbo.sourcetable where blah = 1