Solved

Microsoft ODBC type conversion

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

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 142

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now