PowerShell Script to read and export a CSV file to a SQL Server Database
- Create your SQL database:
CREATE TABLE Persons (
ID int IDENTITY(1,1) PRIMARY KEY,
Name varchar(255) NOT NULL,
Last varchar(255),
Age varchar(10)
);
-
Configure your database connection string at
ln 7
-
Run script
License: MIT