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
 General SQL Server Forums
 New to SQL Server Programming
 create proc myproc as select name as @_name from.

Author  Topic 

krishna_yess
Yak Posting Veteran

81 Posts

Posted - 2011-02-21 : 04:59:07
What is the problem with this code
alter proc my_proc (
@_id int,
@_name varchar(20) OUTPUT
)

as select name as @_name from test where id=@_id

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-02-21 : 05:03:19
quote:
Originally posted by krishna_yess

alter proc my_proc (
@_id int,
@_name varchar(20) OUTPUT
)

as select @_name=name from test where id=@_id






the highlighted !!

Cheers
MIK
Go to Top of Page

krishna_yess
Yak Posting Veteran

81 Posts

Posted - 2011-02-21 : 05:06:38
thanks for the reply

i tried that. i could not get ouput parameter value from my c# app.

i think i missed something in my app


any way i'll try again
Go to Top of Page

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-02-21 : 05:07:58
don't know about the C# pardon me for that
Go to Top of Page

krishna_yess
Yak Posting Veteran

81 Posts

Posted - 2011-02-21 : 05:23:03
this worked
thanks
Go to Top of Page
   

- Advertisement -