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
mohammed shamsheer
NA
394
144.4k
Msg 208, Level 16, State 3, Procedure AddRegistrationFormNew
Jul 29 2013 12:35 AM
USE [Sams]
GO
/****** Object: StoredProcedure [dbo].[AddRegistrationFormNew] Script Date: 07/29/2013 09:46:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[AddRegistrationFormNew]( @Name VARCHAR(15),@Address VARCHAR(30),@PhoneNumber INT,@EmailId VARCHAR(15))
AS
declare @Rid as int
select @Rid =ISNULL( max(Rid),0)from AddRegistrationFormNew
set @Rid=@Rid+1;
INSERT INTO RegistrationFormNew(Rid,Name,Address,PhoneNumber,EmailId)VALUES(@Rid,@Name,@Address,@PhoneNumber,@EmailId)
EXEC AddRegistrationFormNew 'test','palak','100','
[email protected]
'
Reply
Answers (
4
)
SQL does not return rows using variable in string
How to convert string date into datetime fromat