Solved

to_char/to_date and VB

Posted on 1998-05-07
1
1,571 Views
Last Modified: 2012-08-14
Using oracle server 7.3 and VB5/Prof, I try to retrieve a record that one of the columns, CALLDATE, is defined as date.
The SQL statment is:
Set rsinvoice = dbsRemote.OpenRecordset("select PIN_NO,to_char(CALLDATE,'MM/DD/YYYY') from [ALON.INVOICE] order by PIN_NO", dbOpenSnapshot, dbRunSync)

But when executing this statment I gor an error:
3085:undefined function 'to_char' in expression.

My question is why VB doesn't recorgnize this function, and how can I make it recognize the function?

Thanks,
Alon
0
Comment
Question by:oak022097
1 Comment
 
LVL 2

Accepted Solution

by:
xiaodong earned 70 total points
ID: 1080929
You need to use a flag called dbSQLPassThrough when you open the recordset.  to_char is Oracle-native, and is not part of ODBC specification.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question