Microsoft SQL Server

ngSurvey database installation

You may deploy the ngSurvey DACPAC package found in the databases/ directory of your zip file using the sqlpackage command line or the SQL Server Management studio.

Please note that all these steps require an existing database, it can be either empty or with a previous version of ngSurvey. If any pre-existing ngSurvey database is found all its data and structure will automatically be upgraded to match the current installation version.

This database installation is not required by default ngSurvey will automatically configure the database that is setup in the Connectionstring.

Requirements

  1. SQL Server 2016 or above / Express.

  2. SQL Server Azure / AWS. Works only using SQLPackage.exe.

  3. Database's user must have DBO access to the database.

Command line

  1. Download SQLPackage.exe from Microsoft's website.

  2. Run following command from Window's Powershell or console to deploy the ngSurvey database code to your SQL Server. Make sure to put the proper path location of the sqlpackage.exe and to replace the TargetConnectionString by your own database connection string. sqlpackage.exe /Action:Publish /Sourcefile:ngsurveydb.dacpac /TargetConnectionString:"Server=tcp:yourdatabaseserver,1433;Initial Catalog=yourdatabase;Persist Security Info=False;User ID=youruser;Password=yourpassword;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"

Last updated

(c) 2024 Data Illusion Zumbrunn. All rights reserved. Reproduction strictly forbidden.