Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
I was experimenting around and wrote this bit of SQL not more than an hour ago:
Code:
select * into #temp1
from [add your source objects here]
where 1=2
select * from tempdb.dbo.syscolumns
where id = (select id from tempdb.dbo.sysobjects where name like '#temp1%')
drop table #temp1