Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Microsoft ODBC type conversion

Posted on 2001-08-29
5
Medium Priority
?
295 Views
Last Modified: 2010-08-05
Are there any type conversion functions in Microsoft ODBC drivers? For instance, while using standard textfile driver I've tried both CONVERT, CAST ... with no result. The driver says 'Function CONVERT not defined' or such like that. I investigeted driver properties and I can see, that SQL_CONVERT_FUNCTIONS.SQL_FN_CVT_CONVERT is enabled... so maybe I use wrong syntax?
0
Comment
Question by:Robson
5 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6437431
The convertion functions usable are the ones from the database you are connection. Thus:
* if you connect to SQL Server
  Convert, Cast ... can be used
* if you connect to Oracle:
  to_char, to_number ... can be used
* if you connect to Access:
  cdate, cint, cstr ... can be used

aso

cheers
0
 
LVL 4

Author Comment

by:Robson
ID: 6439518
What if I 'connect' to comma-delimited text file?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6440021
I could not find any hints to convertion functions in that case...
i guess you need to convert all the data manually in the front-end application...

Cheers
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7261682

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7291804
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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