DB Creation
Installation
Last updated
Was this helpful?
Installation
Last updated
Was this helpful?
There is a folder named SQL in the directory where the SessionAudit server role is installed. In this folder, there are 2 files named "1-Schema.sql" and "2.Data.sql". These files create the database and built-in data needed by the SessionAudit server role. Follow the steps below to create the database:
Run the SSMS (SQL Server Management Studio) management interface from the start menu with the RunAs Administrator command.
Go to the Open File window with the File \ Open \ File menu. CTRL+O hotkey combination can be used for this.
Go to %PROGRAM FILES%\Arksoft Bilisim\SessionAuditServer\SQL. If this address has been changed during installation, the installation directory must be found and opened.
1-Open the Schema.sql file,
The file contains a description named [@DBNAME]. This information is on line 1. The definition of [@DBNAME] must be the same as the database name specified in the Initial Catalog field in the AppSettings.json file. Below are suggested database names.
SA4SC
SessionAudit
After the DBNAME variable name is changed, the script is run by pressing the F5 key.
An error may occur in the following cases:
If User Account Control is open and SSMS interface is not opened with RunAs Administrator,
If the user logged into the SQL interface does not have the sysadmin role,
If the user logged into the directory where the database will be created does not have write rights
The database name or file may already exist in the system.
Second, open the 2-Data.sql file. This file contains the built-in data that should be in the database. Likewise, the [@DBNAME] variable in this file is replaced with the database name. Run the script with the F5 key.