Click here to Skip to main content
16,018,637 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
ERROR MESSAGE-
"Procedure or function 'JSP_ResumeInsert' expects parameter '@CreationDate', which was not supplied.
"

table script as--

CREATE TABLE [dbo].[JS_ResumeInsert](
[JS_Id] [int] NULL,
[UserEmailId] [varchar](150) NULL,
[Name] [varchar](50) NULL,
[Phone] [varchar](200) NULL,
[Institute] [varchar](100) NULL,
[Batch] [int] NULL,
[Designation] [varchar](100) NULL,
[Organization] [varchar](100) NULL,
[Experience_Months] [varchar](10) NULL,
[Experience_Years] [varchar](10) NULL,
[TotalExp] [int] NULL,
[Industry] [varchar](300) NULL,
[CurrentLocation] [varchar](100) NULL,
[PreferredLocation] [varchar](100) NULL,
[IsInserted] [int] NULL,
[IsUpdated] [int] NULL,
[CreationDate] [datetime] NULL
)


CREATE PROCEDURE [dbo].
[JSP_ResumeInsert]
@JS_Id int ,
@UserEmailId varchar(150),
@Name varchar(150),
@Phone varchar(50) ,
@Institute varchar(150),
@Batch varchar(30) ,
@Designation varchar(150) ,
@Organization varchar(150),
@Experience_Months varchar(30) ,
@Experience_Years varchar(30) ,
@TotalExp varchar(50),
@Industry varchar(300) ,
@CurrentLocation varchar(100) ,
@PreferredLocation varchar(100),
@IsInserted int ,
@IsUpdated int ,
@CreationDate datetime,
@Result Tinyint OutPut

AS
BEGIN
IF EXISTS(SELECT * FROM JS_ResumeInsert WHERE UserEmailId =@UserEmailId )
BEGIN
SET @Result = 0-- Already Exists
END

ELSE
BEGIN



INSERT INTO JS_ResumeInsert
(
JS_Id ,
UserEmailId,
Name ,
Phone ,
Institute ,
Batch ,
Designation ,
Organization ,
Experience_Months ,
Experience_Years ,
TotalExp ,
Industry ,
CurrentLocation ,
PreferredLocation ,
IsInserted ,
IsUpdated ,
CreationDate

)

VALUES
(
@JS_Id,
@UserEmailId ,
@Name,
@Phone ,
@Institute ,
@Batch ,
@Designation ,
@Organization ,
@Experience_Months ,
@Experience_Years ,
@TotalExp ,
@Industry ,
@CurrentLocation ,
@PreferredLocation ,
@IsInserted ,
@IsUpdated ,
GetDate()
)



set @Result =1
return
END
END
Posted
Comments
PIEBALDconsult 24-Jan-13 0:00am    
That looks OK to me; show the calling code.

Its working buddy
here is the script to insert
declare @Result tinyint
declare @date datetime
Exec JSP_ResumeInsert 1 ,
'test',
'test',
'test' ,
'test',
1 ,
'test' ,
'test',
'test' ,
'test' ,
1,
'test' ,
'test',
'test',
1 ,
1 ,
@date,
@Result OUT


and the output is
CreationDate
2013-01-24 10:33:03.693
 
Share this answer
 
as i removed @CreationDate datetime , statement the error stops showing ....so was it the problem
VB
Manish_nautiyal
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900