Creating a Database |
[This is preliminary documentation and is subject to change.]
This pages describes how to create a database for a configuration
Creating a database "from scratch" requires "create database" and "drop database" rights in the SQL Server. These rights may differ between database server environments. Typical types of database server environments are:
"Normal" environments, where the configurator / deployer has permission to create and drop databases.
This is typically the case in development and test environments.
In this type of environment, the configurator / deployer can create any number of databases "from scratch".
"Managed" environments, where permission to create and drop databases is restricted to a few key staff members (database administrators, aka. DBAs). This is typically the case in production environments. In such environments, creating a new database requires the following steps:
A DBA creates an empty database and two corresponding SQL Server logins (an application login and an administrator login). The created logins must have specific setting for default schema and database - refer to the command line scripts for details.
The configurator / deployer setting up a database for the TOPICA application then proceeds to:
Create the database objects (tables, views, stored procedures, etc.) needed for a TOPICA application in the new database.
Connect the configuration with the new database.
Versions 4.25 and later:
The Administration Module, makes it possible to administer databases from the web user interface.
Versions 4.24 and earlier:
All database management is done using command line scripts - see Database Management using Scripts.
After creating a database, the configurator / deployer must set up the "database connection string" in the key Database in the Server.config file of the relevant configuration.