Install Microsoft SQL Server and create a database - database configuration/design tasks
If you are tasked with installing and configuring the database, here is a list of steps to be taken:
-
Install Microsoft™ SQL Server, or setup a Microsoft Azure Database in the cloud.
Important: The collation of the SQL Server instance defines the collation of the
tempdb
system database. This can matter if your programs create temporary tables withCREATE TABLE #tabname
. For more details, see Temporary tables. -
Create a SQL Server database entity with the SQL Server Management Studio.
In the database properties:
- Define the database "Collation": The database collation defines the character set for CHAR/VARCHAR columns, and the "SC" collation option defines if NCHAR/NVARCHAR columns store UTF-16 characters (or UCS-2 when SC is not used). Choose the right code page / collation to get a case-sensitive database.
- The "Compatibility level" must be set to an SQL Server version supported by the Genero BDL.
- The "ANSI NULL Default" option must be set to true, if you want to have the same default NULL constraint as in Informix® (a column created without a NULL constraint will allow null values, users must specify NOT NULL to deny nulls).
- The "Quoted Identifiers Enabled" option must be set to false, to use database object names without quotes.
- Create and declare a database user dedicated to your application: the application administrator.
- If you plan to use SERIAL emulation based on triggers using a registration table, create the SERIALREG table and create the serial triggers for all tables using a SERIAL.
- Create the application tables.Convert Informix data types to SQL Server data types. See Data type conversion table: Informix to SQL Server. In order to make application tables visible to all users, make sure that the tables are created with the 'dbo' owner.