how to SQL Query a csv file in C++



I'm not sure if this is the right place to put but any advice is helpful.

I'm trying to write a code to use SQL query statement to read a csv file in MSVS 2008.

is this possible?

my query string is
SELECT PremiumID FROM openrowset('MSDASQL','Driver={Microsoft Text Driver (*.txt, *.csv)}', SELECT * FROM C:\estcsv.csv')

and receive an exception error msg <Bad Ptr >

any help is highly appreciated. :)
Topic archived. No new replies allowed.