Possible Duplicate:
Getting return value from stored procedure in C#
im using the following sql function in a c# winform application
create function dbo.GetLookupValue(@value INT)
returns varchar(100)
as begin
declare @result varchar(100)
select
@result = somefield
from
yourtable
where
ID = @value;
return @result
end
my question is: how can i read the returned @result in c#?