Hi,
How to get multiple records from a single sp
Ex:
CREATEproc [C244570_marriage].[sp_getpersonaldetails]
@customerid nvarchar(max)
as
begin
select * from personalinfo where CustomerId=@customerid
end
this retruns only the records whose matching the customer id...I need to get UserNames also
CREATEproc [C244570_marriage].[sp_getpersonaldetailsby uname]
@UserName nvarchar(max)
as
begin
select * from personalinfo where UserName=@UserName
end
instead of creating another sp how can i achieve at both results in a single sp..
Find me soln.
Join Hands Change lives
Thanks & Regards
Straight Edge Society