TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ayush Patil
NA
178
20.4k
Passing Column Name as pareameter
Feb 28 2018 12:09 AM
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
Here i m Pass @
Identify as column name and in @Password as column value.
Reply
Answers (
9
)
how can get data from two tables?
how to insert checkbox values by using stored procedure