Knowledge Base

DOCBUG: Nested SPs Can Use Temp Tables Created by Parent

Article ID: 151559

Article Last Modified on 3/14/2005


APPLIES TO


This article was previously published under Q151559
BUG#: 15259

SYMPTOMS

The "Database Developers Companion," chapter 6, page 203, in the Stored Procedure Rules section, incorrectly states that if a stored procedure creates a temporary table and then calls another stored procedure, the nested or child procedure can not reference the temporary table created by the parent procedure.

Nested stored procedures can access all objects created by the stored procedures that call it.

STATUS

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

Additional query words: child parent sp temp nested

Keywords: kbbug kbpending KB151559