nits.shrivastava2006 (5/6/2009)
Hi All, I got null value for the below statementset @val = null but for the below statement
select @val = (select val from #empty) i got
Invalid object name '#empty'
Is it i have to declare #empty first ?
The temporary table needs to be created first. Take a look at the code I posted earlier to see the declarations.
LinkedIn: http://www.linkedin.com/in/sqlrv
Twitter: http://www.twitter.com/sqlrv
Website: http://sqlrv.com