Skip to content

Uses C# to execute a SQL file (e.g. CreateTables.sql) that can contain multiple "GO" statements

Notifications You must be signed in to change notification settings

Harkole/SqlScriptFileExecution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SqlScriptFileExecution

Uses C# to execute a SQL file (e.g. CreateTables.sql) that can contain multiple "GO" statements

Use

  • Update the appsettings.json file with the location of the SQL script to read in and execute
  • Set the options as required (Continue on Error, split the file up etc [Note that spliting the file is recommended])
  • Execute through dotnet ExecuteSqlScript.dll

Contributions

Feel free to extend this out to handle different scenarios

About

Uses C# to execute a SQL file (e.g. CreateTables.sql) that can contain multiple "GO" statements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages