x

Can I have optional parameters to my stored procedures?

Can I have optional parameters to my stored procedures?

more ▼

asked Nov 13, 2009 at 10:10 AM in Default

avatar image

Anthony Osborn ♦♦
171 8 10 13

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

You haven't provided much detail , but this is how you can default parameter values (and therefore make them optional)

Create Procedure proc @Param1 integer = NULL
as
return
more ▼

answered Nov 13, 2009 at 10:27 AM

avatar image

dave ballantyne
928 1 3 6

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x454
x92

asked: Nov 13, 2009 at 10:10 AM

Seen: 2166 times

Last Updated: Apr 21, 2010 at 05:38 PM

Copyright 2016 Redgate Software. Privacy Policy