Try:
create proc MyProc
(
@parm1 int -- mandatory
, @parm2 int = 5 -- optional
)
as
....
--
Tom
----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
"CK" <c_**********@hotmail.com> wrote in message
news:sB*******************@newssvr29.news.prodigy. net...
I want the procedure to check for the existence of a paramter and if it is
there, it will process these instructions, otherwise it will process these
instructions. Any ideas? Thanks for your advice.
Regards,
CK