Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle ASP
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Oracle ASP Using ASP with Oracle databases. For Oracle discussions not specific to ASP, please see the Oracle forum. For more ASP discussions, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle ASP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 14th, 2004, 12:17 PM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default date conflict

I'm calling an update procedure in Oracle
<pre>
With objCommand
      .CommandText = "{call cust_Update(?, ?, ?)}"
      .CommandType = adCmdText
      .Parameters(0).Value = varCus_id
      .Parameters(1).Value = varf_Name
      .Parameters(2).Value = varbirthdate
      .Execute() ............
</pre>
the problem I'm having is entering the birthdate. This is the error
Microsoft OLE DB Provider for Oracle error '80040e14'
I believe it has something to do with the delimiter in the date string("/"), but not sure? The Oracle procedure birth_date column is in "mm/dd/yy" format:
birth_date=to_char(i_birth_date,'mm/dd/yy')....
When I pass this in the textbox in this format I get the error? How can I resolve the ASP to take in the right characters for the birthdate?
Thanks...


  #2 (permalink)  
Old December 7th, 2004, 03:16 PM
Registered User
 
Join Date: Nov 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can easy send date parameter as string and convert it to the date type inside store procedure using TO_DATE(CHAR [,FMT])function.

Jon.

http://www.allamericanjobs.net
 


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dll Conflict suneelkch C# 2005 1 July 10th, 2007 08:37 AM
conflict khalid_raye Pro JSP 0 January 3rd, 2007 06:37 AM
write conflict iacon VB Databases Basics 1 July 3rd, 2006 03:36 PM
Check for Time/Date Conflict aavgeek PHP How-To 0 January 12th, 2006 06:17 PM
collation conflict vijayma SQL Server 2000 1 July 25th, 2005 09:50 PM



All times are GMT -4. The time now is 04:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.