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
 Transact-SQL (2000)
 Can Parent Proc Variable be access in Child Proc

Author  Topic 

shzkhan28
Starting Member

15 Posts

Posted - 2009-08-03 : 23:44:55
Hi All,

Can Parent Procedure @Variable be access in Child Procedure
for eg:

Procedure Parent
Begin
Declare @Variable INT
EXEC Child
End

Procedure Child
Begin
Print @Variable -- Can Parent Procedure @var be access in Child?
End

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-08-04 : 00:32:37
No. Cannot. You have to pass in to the CHILD as a parameter


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -