Microsoft KB Archive/141974

{|
 * width="100%"|

BUG: Creating Temp Table in SEM Causes Error 208

 * }

Q141974

-

The information in this article applies to:


 * Microsoft SQL Server version 6.0

-

BUG# NT: 11526 (6.00)

SYMPTOMS
Creating a temporary table outside a stored procedure will generate the following message:

Error 208: Invalid Object Name ' '

You can encounter this problem when you use the SQL Enterprise Manager option "Manage Stored Procedures."

WORKAROUND
Use a query window to execute scripts containing temporary tables created outside stored procedures.

STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION
The following three scenarios define the problem"

  Put the following code in the 'Manage Stored Procedures' window:

  create table #t1(a int) go  create procedure test as   select * from #t1 go   If no temp tables are created outside the stored procedure, it works fine.

  create procedure test as   select * from #t1 go   Creating a temp table without creating a stored procedure works fine.

  create table #t1(a int) go 

Additional query words: sql6 winnt sem sproc

Keywords : kbprogramming

Issue type : kbbug

Technology : kbSQLServSearch kbAudDeveloper kbSQLServ600