If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > sql date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-05, 07:22
Nii Nii is offline
Registered User
 
Join Date: Feb 2005
Posts: 25
sql date

hi,

i passed a date variable (eg variable name = salesdate, format = 2005-07-03) to my stored proedure and it does not work.

however it works when i put the function curdate() in place of the variable.

what can i be doing wrong?
Reply With Quote
  #2 (permalink)  
Old 03-08-05, 07:53
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
A few questions:
- What's the exact error?
- What's the definition of the Stored Procedure?
- Where does it fail (in the Pervasive Control Center or your application or both)?
- What's the actual command to call the procedure that you're using?

One suggestion:
- Make sure the date is formatted properly (YYYY-MM-DD). It also needs to be enclosed in single quotes ('2005-03-07').
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On