Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Passing Null Parameters to stored Procedures

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-08-09 : 09:24:27
Balajee writes "I am Using
SQL Server 7.0, Win 2000 Server

I have comma delimited SQL text passed as
Parameters to a stored procedure. I am using
connection object to execute the stored
procedure. While passing the parameters
positionally will i be able to leave
certain parameters take default values

For Example while executing the Procedure
sp_MyProc i need to pass four parameters.
i would only need to pass the 2nd and 4th
parameter, remaining parameters takes default
values

The Call to Procedure should look like

Conn.sp_MyProc [param1],[param1],[param1],[param1]

Here param1 and param3 are not passed to SQL server
they must take default values. Is such thing possible
when passing parameters this way."
   

- Advertisement -