Can anybody explain why this does not work:
EXEC ('CREATE TABLE #tmpMine (MyData Int)')
EXEC ('INSERT INTO #tmpMine (MyData) VALUES (54)')
EXEC ('SELECT * FROM #tmpMine')
I get the following errors:
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name '#tmpMine'.
Server: Msg 208...
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.