Re: error executing sprocedure
From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 08/02/04
- Next message: Neil Pike: "Re: FTP Directly into SQL Server"
- Previous message: Brian Moran: "Re: Check collations"
- In reply to: CC&JM: "error executing sprocedure"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 2 Aug 2004 08:14:22 -0400
In addition to Jacco's comments, what he and others showed you is an
optional parameter... To make a parameter optional you must give it a
default value. Then when no value is supplied by the caller the default
value is used.
You may use default values with OUTPUT parameters. And you may have some,
all or none of your parameters with default values.
-- Wayne Snyder, MCDBA, SQL Server MVP Mariner, Charlotte, NC www.mariner-usa.com (Please respond only to the newsgroups.) I support the Professional Association of SQL Server (PASS) and it's community of SQL Server professionals. www.sqlpass.org "CC&JM" <anonymous@discussions.microsoft.com> wrote in message news:8edb01c47878$887871e0$a501280a@phx.gbl... Hello, I've created one stored procedure that has one input parameter(number of days), if i donīt pass any value when executing this procedure sql reports one error. I would like to execute this procedure and don't pass the input paramenter to the stored procedure but if the number of days is 0(zero) Is this possible? Thanks. Best regards
- Next message: Neil Pike: "Re: FTP Directly into SQL Server"
- Previous message: Brian Moran: "Re: Check collations"
- In reply to: CC&JM: "error executing sprocedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|