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 2005 Forums
 Transact-SQL (2005)
 Query Issue

Author  Topic 

SijoJose
Starting Member

1 Post

Posted - 2009-06-17 : 09:55:51
Alter Proc SSS
As
Declare @S Varchar(10)
Set @S=1
Select @S As SDS

Declare @SDS Varchar(10)
set @SDS = Execute SSS
Select @SDS

i am not able to assign return value to the variable when I executed the procedure.

Can anybody help me. Your feedback will be helpful

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-17 : 10:00:10
return value through output parameter created on procedure.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-17 : 10:08:55
You are trying to create a recursive stored procedure?
You are altering procedure SSS to execute procedure SSS...


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-06-17 : 10:14:46
may be this is what you want


Alter Proc SSS
@S Varchar(10) OUTPUT
As
Set @S=1
Select @S As SDS
GO

Declare @SDS Varchar(10)
Execute SSS @SDS OUTPUT
Select @SDS


Go to Top of Page
   

- Advertisement -