Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem when passing null values to command parameters

Status
Not open for further replies.

WebNickson

Programmer
Dec 8, 2003
46
SG

I have created a command object to call an SP. My parameters consist of integers, strings and dates types.

It is possible that the values I pass to is null or an empty string. This seems to give error to my Command object even though I have routines in the SP to handle null or empty strings.

Can someone advise what is the best approach to such a problem?

rgds,
Nickson
 
You could check the values before you send them to the SP and take care of null/empty values there.



Regards

M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top