Chapter 8 Configuring Microsoft SQL Server Databases
This chapter describes how to use Microsoft SQL Server databases in the SilverStream Application Server environment. It includes information about using Microsoft SQL Server as a SilverMaster database or as an application database.
For the latest information on supported database versions, see the SilverStream Application Server release notes. In Windows, you can access the release notes from the SilverStream program group or from SilverStream online help.
Setting up Microsoft SQL Server databases
SilverStream connects to Microsoft SQL Server using the ODBC driver supplied by Microsoft as part of the SQL Server client. There are different versions of this ODBC driver.
To make a Microsoft SQL Server database available to SilverStream:
- Install the Microsoft client onto the machine where the SilverStream Server resides.
- Create the database and configure SQL Server.
- Create a database login to be used by the SilverStream Server.
- Create an ODBC System DSN entry for SilverMaster on the machine where the SilverStream Server resides.
- Install the SilverStream Server and choose Microsoft SQL Server as the SilverMaster type.
For information about installing the SilverStream Server, see
Installing SilverStream on Windows.
Step 1: Install the Microsoft SQL Server client
You must have the Microsoft SQL Server client software installed on the PC where the SilverStream Server will be. Your client must be configured to connect to the destination SQL Server database.
Step 2: Create the database and configuring SQL Server
Before you can install SilverStream, you must first create the actual SQL Server database (and underlying database devices). You can create these objects using either ISQL or a graphical tool such as SQL Enterprise Manager.
These notes describe how to use SQL Enterprise Manager to create the objects. You need to connect to SQL Server using SA or an account with SA privileges in order to create these objects.
To create a Version 6.5 database:
- From SQL Enterprise Manager, connect to the destination SQL Server.
- Right-click on the database devices folder and select New Device.
- Create a Database Device called SilverMasterData and specify a size of 30 MB.
- Create another 30 MB device called SilverMasterLog.
- Right-click on the Databases folder and select New Database.
- Create a database called SilverMaster using the devices you created (SilverMasterData for the data and SilverMasterLog for the transaction log).
If you are not going to back up this database regularly, enable the Truncate Log on Checkpoint option: Right-click on the database and select Edit. This option is found on the Options tab.
- For SQL Server 6.5, you must verify the size of the TEMPDB database by right-clicking on the TEMPDB database and selecting Edit.
The size of the database is shown on the Database tab. If the size of your TEMPDB database is less than 50 MB, extend it by increasing the size of your MASTER device and choosing Expand the database (this option is found on the same tab as the Data Size value).
- You must verify that you have an appropriate amount of memory allocated to SQL Server. This can be done through SQL Enterprise Manager.
To create a Version 7 database:
- From SQL Server Enterprise Manager, right click on databases and select New Database and give the new database a name, such as SilverMaster.
- In File Properties either allow for unrestricted file growth or allow at least 30 MB for the database.
- Select the Transaction Log tab and allow unrestricted file growth or allow at least 30 MB for the log file.
- Click OK to create the database.
- Select the TEMPDB and right-click and select Properties. Verify that the unrestricted file growth is selected or that there is at least 50 MB allotted for it.
- Verify that you have the appropriate amount of memory allocated to SQL Server. This can be done through the SQL Enterprise Manager.
- Highlight the SQL Server, right-click and select Properties.
- On the SQL Server properties dialog, select the memory tab.
- Verify that either Dynamically configure SQL Server memory is selected or, if you are using a fixed amount of memory for SQL Server, subtract 64 MB from the total physical RAM in the machine and allocate this amount to the SQL Server (if the machine is only running SQL Server). If other server applications are also running on the machine (SilverStream, MS Exchange, and so on) you must also subtract the amount of memory needed for those applications.
Step 3: Create the SilverUser login
Create a login called SilverUserLogin.
Note the following:
- The login cannot have a null password.
- Set the default database for this login to the SilverMaster database you just created. If you do not, you receive error messages during the SilverStream Server Startup stating "The database schema for SilverMaster is out of synch."
- For SQL Server 6.5, you must alias this account to DBO for the SilverMaster database. For SQL Server 7, create a login using a SQL Server authentication mode and enable the db_owner role for the desired database on the Database Access tab.
- The SilverUserLogin must have the following permissions: Create Table, Create View, Create SP, Create Default, Create Rule, Backup DB and Backup Log.
Step 4: Create the ODBC System DSN entry
To create the ODBC System DSN for a Version 6.5 database:
- Configure an ODBC System DSN entry for the SilverMaster or application database.
- Add an entry using SQL Server as the driver type.
- Enter the appropriate Server name for the target SQL Server.
- Enter the destination database in the Default Database field.
- Click the Options button and deselect the Create temporary stored procedures for prepared SQL statements and drop the stored procedures check box for use with SilverStream.
If you do not deselect this option SilverStream will not function properly with the database.
To create the ODBC System DSN for a Version 7 database:
- Add an entry using SQL Server as the driver type.
- Enter the Server name for the target SQL Server.
- Enter the SQL Server user authentication information for the SilverUserLogin and click Next.
- Select the proper default database name.
- Deselect Use ANSI quoted identifiers.
- Deselect Use ANSI nulls, paddings, and warnings and click Next.
- Accept the proper language, and region settings options and click Finish.
Copyright © 2000, SilverStream Software, Inc. All rights