Hai,
What it means?
Must declare the scalar variable "@prodimg".
I declared this variable in a stroed Procedure...
My Code is given Below..
[code]
CREATE PROCEDURE cloneTable (@users varchar(250)) AS
-- Add the parameters for the stored procedure here
DECLARE @categ varchar(150)
DECLARE @prod varchar(150)
DECLARE @proddoc varchar(150)
DECLARE @prodimag varchar(150)
DECLARE @prodsub varchar(150)
BEGIN
set @categ=@users + "_Catalog_Category"
set @prod=@users + "_Catalog_Product"
set @proddoc=@users + "_Catalog_Product_Document"
set @prodimg=@users + "_Catalog_Product_Image"
set @prodsub=@users + "_Catalog_Product_Subccat"
END
[/code]
But it shows the below error...
[code]
Msg 137, Level 15, State 1, Procedure cloneTable, Line 12
Must declare the scalar variable "@prodimg".
Msg 102, Level 15, State 1, Procedure cloneTable, Line 15
Incorrect syntax near '@categ'.
Msg 102, Level 15, State 1, Procedure cloneTable, Line 16
Incorrect syntax near '@prod'.
Msg 102, Level 15, State 1, Procedure cloneTable, Line 17
Incorrect syntax near '@proddoc'.
Msg 102, Level 15, State 1, Procedure cloneTable, Line 18
Incorrect syntax near '@prodimag'.
Msg 102, Level 15, State 1, Procedure cloneTable, Line 19
Incorrect syntax near '@prodsub'.
[/code]
Thanks & Regards
Rajkumar J