I want to get result of below query in sp
select * from Policy_Holder_Details where Pan_Number='CQVPB1111M' and Date_Of_Birth='14-Jun-1992'
result:-
but I Execute below sp then not get in result
ALTER PROCEDURE [dbo].[GetLoginByIdentifyPasswordDOB]
-- Add the parameters for the stored procedure here
@Identify varchar(50) ,
@Password varchar(50) ,
@Date_Of_Birth Datetime
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
select * from Policy_Holder_Details where @Identify=@Password and Date_Of_Birth = @Date_Of_Birth
END
Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 26, 2018, 11:18 PM EST
Ayush Patil177 reputationPosted Feb 26, 2018, 11:13 PM EST
Cynthia SathuragiriRank #937 · 2.2K reputationPosted Feb 26, 2018, 11:25 PM EST
Ayush Patil177 reputationPosted Feb 26, 2018, 11:30 PM EST
Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 26, 2018, 11:34 PM EST
Cynthia SathuragiriRank #937 · 2.2K reputationPosted Feb 26, 2018, 11:41 PM EST
Ayush Patil177 reputationPosted Feb 27, 2018, 12:11 AM EST
Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 27, 2018, 12:45 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts