Solved

Microsoft ODBC type conversion

Posted on 2001-08-29
5
280 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

734 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