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]'


Iftikar HussainRank #423 · 5.9K reputationPosted Jul 28, 2013, 8:40 PM EDT
try like this
EXEC AddRegistrationFormNew 'test','palak',100,'[email protected]'
Regards,
Iftikar
Ravi ShekharRank #673 · 3.6K reputationPosted Jul 28, 2013, 9:07 PM EDT
EXEC AddRegistrationFormNew 'test','palak','100','[email protected]'
thats y you are getting error.
use Iftikar Hussain sir code.
mohammed shamsheerRank #4,152 · 361 reputationPosted Jul 28, 2013, 10:17 PM EDT
so i used convert.toINT#32
{ "@PhoneNumber", Convert.ToInt32(txtPhoneNumber.Text) }
thank u for the all the answer
Ravi ShekharRank #673 · 3.6K reputationPosted Jul 28, 2013, 11:28 PM EDT