Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Datasource connection for TXT files

Enthusiast ,
Aug 25, 2008 Aug 25, 2008
In CF5 we were able to make a datasource connection to a TXT file, I think we could also do it in 7, but in CF8 there appears to be no option to do this? I set one up within Windows ODBC but CF8 does not see it, it seems that all datasources must be set up within CF8 administrator.

Could anybody tell me how I set up a TXT datasource in CF8?

Thanks

Mark
TOPICS
Database access
378
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 27, 2008 Aug 27, 2008
If you are on a Windows machine, setup a data connection in the ODBC control panel on the machine itself first, then connect to it using the ODBC Socket option in the DB section of CF ADmin

Considering the advancement of XML data and other available data options, txt files are not used that much any longer. It would likely be just as fast to simply open the TXT file with CFFILE and parse it that way.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 27, 2008 Aug 27, 2008
LATEST
Another neat trick is to call the file with cfhttp and use the name attibute to produce a query object. Then you can run a Q of Q.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources