Skip to content

A tool that inserts data from Excel worksheet into a SQL Server instance, using C# standard System.Data.SqlClient namespace.

Notifications You must be signed in to change notification settings

bartolek153/xlsxdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xlsxdb

A tool to help inserting rows from Excel worksheet direct into a database.

xlsxdb logo

It's necessary to provide a .env file in the same directory of executable file, containing the connection string inside CONNECTION_STR.

Example:

CONNECTION_STR=server=xxx;user id=xxx;password=xxx;initial catalog=xxx;

The worksheet file should be named with the same name of destiny table.

TODO

  • Generate SQL code, when table does not exist;
  • Write Logs;
  • Enhance CLI;
  • SetOrdinal;
  • If column is not in database, ignore it;
  • When cell has no value, insert it as null (check if is PK)

About

A tool that inserts data from Excel worksheet into a SQL Server instance, using C# standard System.Data.SqlClient namespace.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages