Undefined function TO_DATE, TO_NUMBER
- From: Rex Cho via .NET 247 <anonymous@xxxxxxxxxxxxx>
- Date: Mon, 06 Jun 2005 15:58:35 -0700
Though I used oleDB, and your select statement:
Imports System.Data.oledb
Dim con As OleDbConnection
Dim cmd1 As OleDbCommand
Dim totalStr As String = "SELECT(TO_NUMBER(to_date('18-AUG-2002')-to_date('14-AUG-2002'))) as Age FROM Calls"
con = New OleDbConnection(conStr)
con.Open()
cmd1 = New OleDbCommand(totalStr, con)
totalReportGrid.DataSource = cmd1.ExecuteReader()
totalReportGrid.DataBind()
con.Close()
I got an error msg like this;
Undefined function 'TO_NUMBER' in expression.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Undefined function 'TO_NUMBER' in expression.
How can I make it work?
--------------------------------
From: Rex Cho
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>m37NHLk8oUy/2XXDy/28kw==</Id>
.
- Follow-Ups:
- Re: Undefined function TO_DATE, TO_NUMBER
- From: Peter van der Goes
- Re: Undefined function TO_DATE, TO_NUMBER
- Prev by Date: Problem with operator
- Next by Date: Re: connection options to yukon
- Previous by thread: Problem with operator
- Next by thread: Re: Undefined function TO_DATE, TO_NUMBER
- Index(es):
Relevant Pages
|