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
Mahesh Babu
NA
118
32.3k
stored procedure in sqlserver
Aug 22 2018 3:35 AM
How to check the condition
this is my sp
how to check the id is null in the sp
alter PROCEDURE Check_Exist
(
@Id INT,
@balance money
)
AS
BEGIN
If @Id is null
IF NOT EXISTS (SELECT AccountId FROM Account WHERE [AccountId]=@Id)
BEGIN
INSERT INTO Account VALUES(@Id,@balance)
PRINT 'New Record Insert Successfuly'
END
ELSE
BEGIN
PRINT 'Id All Ready Exist'
END
END
please help me this
Reply
Answers (
3
)
How to do this dynamical. Then I can put the value of myself
how to show data saved sucessfully in asp dotnet after inser