Hello,
After upgrading to office 2010 I am not able to make changes to my store procedures. They all work, but every time I try to modify it or even just saving without any modification I get an ADO error.
Here is one of my store procedures:
Code:
Create PROCEDURE TestSP
(
@Course varchar(10) = '%',
@Location varchar(50) = '%',
@Term varchar(41) = '%',
@Type varchar(20) = '%',
@Status Varchar(20) = '%'
)
as
set nocount on
SELECT DISTINCT Link, Session, Term, Type
FROM dbo.PFMain
WHERE (Course LIKE @Course) AND (Location LIKE @Location) AND (Term LIKE @Term) AND (Type LIKE @Type) AND (Status LIKE @Status)
Return
For this Store Procedure I get the following error: ADO error: Incorrect syntax near the keyword 'PROCEDURE'. Must declare the variable '@Status'.
Thanks in advance for the help.