Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 executing dynamic SQL statements

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-09-01 : 17:44:27
Roumen writes "I am building a dynamic SQL statement like:

set @stmt = "select * into #myTempTable from mytable"

then I do:

execute (@stmt)

Now, it executes, and @@rowcount is 1
But, I don't see the temporary table!

Do you have a workaround for this?

Ganeff"

   

- Advertisement -