Solved

Microsoft ODBC type conversion

Posted on 2001-08-29
5
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

624 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