Link to home
Start Free TrialLog in
Avatar of andyw27
andyw27

asked on

SP – Parameter type Numeric(32, 0)

Hi,

I need to use a stored procedure that has a parameter called ‘Option’ of type:

Numeric(32,0)

In what form should I input the data.  I know that valid options are

1
2
3
4

But I can’t understand why this is simply not an int parameter?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well, the requirement would be to be able to work with numbers greater than 2147483648. this is the maximum values that an integer can hold. Numeric(32,0) gives you flexibility to actually have an integer far greater than what you could get using an Int
you should be able to send an integer to the proc without problems.  If the parameter can only be 1,2,3 or 4 then they temporarily wasted a few bytes, but it is unlikely to be noticeable.
"In what form should I input the data"

How are you using this?  Typing it into a query window of SSMS?  Dynamic Sql via an ODBC connection?  Parameterized ADO call?