FAQ/upload-csv-data-to-sql-server.md
... ...
@@ -7,18 +7,22 @@
7 7
2. Access to SQL Server with permissions to modify an existing table, or permissions to create a new table
8 8
9 9
## SQL Server Setup
10
-From within SQL Server Manager
10
+
11
+From within SQL Server Manager:
12
+
11 13
1. Create a new login by right clicking on (<ServerName> -> Security -> Logins) and choose "New Login"
12
- * Choose SQL Server authentication, choose a username and password. Disable "User must change password at next login".
13
-2. Choose the Database you want to upload the data to (<ServerName> -> Databases). If you want to create a new Database, right click on (<ServerName> -> Databases) and choose "New Database". After choosing or creating your Database, right click on (<ServerName> -> Databases -> <YourDatabase> -> Security -> Users) and choose "SQL user with login" and enter the login for the username and the login fields. Next choose the Membership page and checkmark "db_owner". Click OK.
14
+2. Choose SQL Server authentication, choose a username and password. Disable "User must change password at next login".
15
+3. Choose the Database you want to upload the data to (<ServerName> -> Databases). If you want to create a new Database, right click on (<ServerName> -> Databases) and choose "New Database". After choosing or creating your Database, right click on (<ServerName> -> Databases -> <YourDatabase> -> Security -> Users) and choose "SQL user with login" and enter the login for the username and the login fields. Next choose the Membership page and checkmark "db_owner". Click OK.
14 16
15 17
## csvetl usage
16 18
```bash
17 19
Usage: csvetl.exe <work mode> <connection string> <file> [file] .... [file]
18 20
```
19
-* Where work mode can be:
20
- * recreate - for recreating tables
21
- * append - for inserting values to existing tables without recreation
21
+
22
+Where work mode can be:
23
+
24
+* recreate - for recreating tables
25
+* append - for inserting values to existing tables without recreation
22 26
23 27
The table created or appended to will be named after the imported CSV file without the extension
24 28