SQL Query from a File

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
hoangvo81
Pro Scripter
Posts: 69
Joined: Tue Feb 07, 2012 8:02 pm

SQL Query from a File

Post by hoangvo81 » Thu Mar 08, 2012 1:23 am

I can run the below sql directly from MS Access

select * from [text;database=C:\test].[fixedDataLengthFile.txt] as pm

but when i tried to put that into DBQuery it doesnt recognize it. Any suggestion other than reading the file using ReadLn
?

hoangvo81
Pro Scripter
Posts: 69
Joined: Tue Feb 07, 2012 8:02 pm

Post by hoangvo81 » Thu Mar 08, 2012 8:35 am

Nevermind,
I saw the article about querying csv files and schema.ini
Will try that tomorro

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts