Hi,
I will not answer your question, I will only bring your attention that rather than creating the temp table all what you need is to:
select *
into #t
from t1
this simple SQL stmt will create the temp table #t for you exactly like the table t1.
Hope this will help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.