Provide table data as a CSV (comma-separated values) file and output a SQL insert statement for a table with the same name as the file.
- Confirm you have a directory named
csv
- Confirm you have a directory named
sql
- Save your input CSV file in the
csv
directory - In a terminal window, run
dotnet script csvtosqli.csx ExampleTable
- Watch the terminal window for any error messages
- Your SQL insert statement will be saved in
sql/YourFileName.sql