Skip to content

Commit

Permalink
Update docs about using the project and setting odbcad configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewgr committed May 22, 2024
1 parent ffc3a64 commit d808e10
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ Maybe in the future this will change if it makes things difficult and we maintai

### How to use

If you running for the first time the `import.ps1` script, open Powershell as admin and run this command: `Install-Module sqlserver`
Before running the `import.ps1` script, check that the `$server_name` variable matches with your current server name. If you installed SQL Server using the default instance, then the defaults arguments should work, otherwise you can provide to the script an argument with your custom server name. You can run the following command in powershell to know the names of your current SQL Servers:
```powershell
(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server').InstalledInstances
```

Before running the `import.ps1` script, check that the `$server_name` variable matches your current server name. If you use the default instance, then defaults should work, otherwise you can provide the script an argument with your custom server name (`.\import.ps1 -server_name "MyServer`).
Assuming you set a custom name to your SQL Server instance, you may invoke the import command as follows:
```powershell
.\import.ps1 -server_name ".\MyCustomInstanceName"
```

Once you run the script, the database is ready to be used by the server files.
Once the import script finished importing the db, you can use the `odbcad.ps1` script to automatically set odbcad configurations so that the server files can connect to the db. You can also set odbcad configs manually, but the `odbcad.ps1` will help you automate the creation of odbcad configurations.

0 comments on commit d808e10

Please sign in to comment.