I need a .bat file that will run a bulk export from a SQL Server.
I need at least 3 files:
1- .bat that I can run with task scheduller
2- txt or similar with SQL Server details (Server name, user, password and database) and destinty path
3- txt or similar with a list of the tables that I need to export.
I wiill use this with more then one server and the tables to export can vary from 1 to n.
The file/s generated will be a csv or txt file.
I need to read the code you generate, so all code must be in the .bat file.