hi,
i have a stored proc which is like this..
if exists (select * from dbo.sysobjects where id =
object_id(N'[dbo].[Code_Testing1]') and OBJECTPROPERTY
(id, N'IsProcedure') = 1)
drop procedure [dbo].[Code_Testing1]
GO
Print 'Creating procedure Code_Testing ....'
CREATE PROCEDURE dbo.Code_Testing1
@inCountry varchar(255) = '' -- Country
for the Pricelist
, @inDebug int = 0 -- Debug
parameter
AS
........so on the code continues.
Why does this give me errors??
when i remove the Print stmt above it works just fine.
The problem has something to go with the Print stmt
before Create Procedure stmt.
I get the erros @inCountry ,@inDebug not declared and
soon..
My question is why cant i use the Print stmt here??