enun03 / ExportCSVtoSQL_PowerShell

PowerShell Script to read and export a CSV file to a SQL Server Database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ExportCSVtoSQL_PowerShell

PowerShell Script to read and export a CSV file to a SQL Server Database

How to use:

  1. 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)
  );
  1. Configure your database connection string at ln 7

  2. Run script

License: MIT

About

PowerShell Script to read and export a CSV file to a SQL Server Database


Languages

Language:PowerShell 100.0%