c++ coding to connect to MSSql Server and extracting to a txt

Job ID: 32457086

Budget: €8 – €30 EUR

I need a c++ code (source and exe compiled) to extract data from a table and set rows it on a text file.
Query, db, user and passw must be configurable by text/xml/json external file.
Related categories: C++ Programming Microsoft SQL Server