December 11, 2008 at 11:27 pm
Heh... no, no... I wasn't trying to be sarcastic or smug in any way. From BOL...
[font="Arial Black"]Arguments[/font]
procedure_name
Is the name of the new stored procedure. Procedure names must conform to the rules for identifiers and must be unique within the database and its owner. For more information, see Using Identifiers.
Local or global temporary procedures can be created by preceding the procedure_name with a single number sign (#procedure_name) for local temporary procedures and a double number sign (##procedure_name) for global temporary procedures. The complete name, including # or ##, cannot exceed 128 characters. Specifying the procedure owner name is optional.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2008 at 11:43 pm
The scope of a temporary stored proc is a bit different than that of a temp table... if you create a temp stored proc using dynamic SQL, it IS callable from the proc that built it outside the dynamic SQL. A thoughtful person could use it to shatter the 4k barrier of sp_ExecuteSQL (in SQL Server 2000, anyway) ...;)
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 16 through 16 (of 16 total)
You must be logged in to reply to this topic. Login to reply