diff --git a/README.md b/README.md index cc8a4ff..4c7d51b 100644 --- a/README.md +++ b/README.md @@ -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.