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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the correct way to pass a d

Status
Not open for further replies.

ktucci

Programmer
Apr 23, 2001
146
US
what is the correct way to pass a datetime parameter in a sp...this does not work...any suggestions

exec sp_orderstatus voice, new, '12/31/2000', '03/31/2001'
 
Hi Ktucci,

I always used the format 'mm-dd-yyyy'

and defined the parameter as datetime value.

Then you can use the parameter as a datetime value and this should work fine. At least it did in my situation.

JNC73
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top