R
Rod Snyder
I'm getting a syntax error on the following stored procedure and I need
another set of eyes.
It's bombing at the @SurveyNameID=SurveyNameID line
Any help would be appreciated.
CREATE PROCEDURE insAnswers
@SurveyNameID int,
@SurveyQuestionID int,
@firstName varchar (50),
@lastName varchar (50),
@email varchar(50),
@questionOneText varchar(100),
@questionOneValue int,
@questionOneComments text,
@questionTwoText varchar(100),
@questionTwoValue int,
@questionTwoComments text,
@questionThreeText varchar(100),
@questionThreeValue int,
@questionThreeComments text
AS
insert into SurveyAnswers
VALUES
(
@SurveyNameID=SurveyNameID,
@SurveyQuestionID=SurveyQuestionID,
@firstName=firstname,
@lastName=lastName,
@email=Email,
@questionOneText=QuestionOneText,
@questionOneValue=QuestionOneValue,
@questionOneComments=QuestionOneComments,
@questionTwoText=QuestionTwoText,
@questionTwoValue=QuestionTwoValue,
@questionTwoComments=QuestionTwoComments,
@questionThreeText=QuestionThreeText,
@questionThreeValue=QuestionThreeValue,
@questionThreeComments=QuestionThreeComments
)
GO
another set of eyes.
It's bombing at the @SurveyNameID=SurveyNameID line
Any help would be appreciated.
CREATE PROCEDURE insAnswers
@SurveyNameID int,
@SurveyQuestionID int,
@firstName varchar (50),
@lastName varchar (50),
@email varchar(50),
@questionOneText varchar(100),
@questionOneValue int,
@questionOneComments text,
@questionTwoText varchar(100),
@questionTwoValue int,
@questionTwoComments text,
@questionThreeText varchar(100),
@questionThreeValue int,
@questionThreeComments text
AS
insert into SurveyAnswers
VALUES
(
@SurveyNameID=SurveyNameID,
@SurveyQuestionID=SurveyQuestionID,
@firstName=firstname,
@lastName=lastName,
@email=Email,
@questionOneText=QuestionOneText,
@questionOneValue=QuestionOneValue,
@questionOneComments=QuestionOneComments,
@questionTwoText=QuestionTwoText,
@questionTwoValue=QuestionTwoValue,
@questionTwoComments=QuestionTwoComments,
@questionThreeText=QuestionThreeText,
@questionThreeValue=QuestionThreeValue,
@questionThreeComments=QuestionThreeComments
)
GO