Operating Vertec with MS SQL as a database server
The following steps are necessary to set up a new Vertec database on a SQL server.
Vertec. You can also use a different name.
db_owner.
Tabellen erstellen (Create Table) for VertecUser.
Optionen, activate the point Statistiken automatisch aktualisieren:
Technically this is called AUTO_UPDATE_STATISTICS and can also be set via T-SQL ALTER DATABASE CURRENT SET AUTO_UPDATE_STATISTICS ON;.
We recommend to recalculate the index statistics regularly (e.g. over the weekend). Either with a maintenance plan directly on MS SQL Server (depending on the version used and described in the corresponding Microsoft documentation), or with the scheduled task available by default from Vertec 6.8, see Recalculation of index statistics.
The following drivers (connection modules) are supported for data access to the MS SQL server and the interaction between Vertec and the MS SQL server:
The provider is specified in the [Database] Section of the Vertec.ini file.
For the conversion of a Vertec database, please note the following articles:
When loading a SQL Server database from another SQL Server installation (i.e. backup was performed on another SQL Server installation), the Vertec database user must be synchronized with the corresponding server login in order to be able to use the database.
It is best to proceed in 2 steps:
sp_change_users_login "AUTO_FIX", "VertecUser"
Use the appropriate username instead of VertecUser. This will link the user to login.
The Query Analyzer returns a corresponding message when the login is synchronized successfully.
SELECT with simultaneous UPDATE can cause a deadlock in MS SQL Server. The message reads:
Transaction (Process ID XX) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
There is a SNAPSHOT feature on MS SQL Server that causes selects to work without locks. The feature is disabled by default because it requires more resources. It can be activated by setting the option on the SQL Server READ_COMMITTED_SNAPSHOT Then all READ_COMMITTED transactions (this is the default) are re-executed with SNAPSHOT_ISOLATION, which avoids deadlocks, but consumes significantly more resources.
If the database server is located in a different domain, the following message appears when Vertec logs on to the database:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
By default, both named pipes and TCP/IP protocols are disabled in SQL Server Configuration Manager. For Vertec, however, both protocols must be enabled.
Make sure that the Named Pipes and TCP/IP protocol are Enabled.

Furthermore, the SQL Server port must be entered in the TCP/IP Properties under IP Addresses in all TCP/IP lines (default: 1433).

Then restart the SQL Service.
If you get the above error message when starting Vertec and you get the error message:
Login failed for user 'VertecUser’. (Microsoft SQL Server, Error 18456)
VertecUser cannot log in directly to the SQL server, the reason is probably that in the server properties of the corresponding server instance under security only the Windows Authentication Mode is enabled and not the SQL Server and Windows Authentication Mode. This setting is incorrect for Vertec and is the default setting when reinstalling a SQL server.
Turn on the SQL Server and Windows Authentication Mode and restart the SQL Service.

This error message appears if the SQL Server login has been configured to expire the password.
In SecurityLoginsVertecUser, Context menu Properties, remove Enforce password expiration.
