Re: Question on temp table

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Paul (not_a_real_email_at_no_spam.com)
Date: 12/10/04


Date: Thu, 9 Dec 2004 20:58:55 -0500


 It seems you can't use table variables that way.
>From SQL Server 2000 BOL (Table Variables)

"Within its scope, a table variable may be used like a regular
table....However, table may not be used in the following statements:

INSERT INTO table_variable EXEC stored_procedure