What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 32958 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > SQL Server > Retrieve Multiple Values from an SP SQL Server ...
Self-Innovator

Retrieve Multiple Values from an SP SQL Server

 Code Snippet posted by: Self-Innovator | Posted on: 10/31/2012 | Category: SQL Server Codes | Views: 380 | Status: [Member] | Points: 40 | Alert Moderator   


CREATE proc [C244570_marriage].[sp_getpersonaldetails]

@custid nvarchar(max)=NULL,
@Gender nvarchar(max)=NULL
as
begin
if (@custid is not null)
begin
select * from personalinfo where CustomerId=@custid
end
else
if (@Gender is not null)
begin
select * from personalinfo where Gender=@Gender
end
end


Join Hands Change lives
Thanks & Regards
Straight Edge Society
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 7:30:41 PM