Borland StarTeam 2009 - Borland Technical Publications

Borland StarTeam 2009 - Borland Technical Publications Borland StarTeam 2009 - Borland Technical Publications

techpubs.borland.com
from techpubs.borland.com More from this publisher
10.07.2015 Views

Using StarTeam with Microsoft SQL Serverand SQL Server Express DatabasesThis chapter explains how to create a new server configuration to use Microsoft SQL Server or SQL ServerExpress databases with StarTeam Server. StarTeam Server stores everything except for file archives andserver startup information in the database of your choice.You can use the Windows version of StarTeam Server with the following Microsoft databases:• Microsoft SQL Server 2005 Express (SSE 2005), installed for you by StarTeam Server 2009.• Microsoft SQL Server 2005 R2Microsoft SQL Server 2005 Express is the StarTeam default database. We advise users to read the SQLServer Express license agreement provided by Microsoft Corporation.StarTeam Server completely automates the process of creating SQL Server and SQL Server Express databasesfor use with StarTeam server configurations. However, if you prefer, you can create your own database. SeeCreating a Database Manually: Overview on page 83 for more information.This chapter also provides an overview of the tuning and maintenance SQL scripts that are provided withStarTeam Server and explains how to use them. For detailed information on Microsoft SQL Server performancetuning, consult your Microsoft SQL Server documentation.Terminology for Microsoft DatabasesThis chapter uses Microsoft terminology for the terms instance and database. When you install Microsoft SQLServer 2005 on a computer, you can install up to 16 instances of it. Each instance can manage a number ofdifferent databases. Each StarTeam server configuration uses its own database.When you perform a typical installation of StarTeam Server, you install one instance of SQL Server Express.More instances come in the download package at the web site and are included on the StarTeam installationDVD because SQL Server Express instances are numbered. This is because you may already have SQLServer Express on the computer, and StarTeam must use a different number than any instance that you alreadyhave.Logging Onto DatabasesIt is highly recommended that you use a dedicated StarTeam user account to run or log onto the databasesused with StarTeam server configurations. System administrator accounts usually have unlimited privileges.Any anomalies or errors that occur while you are logged in as the system administrator may result inunrecoverable damage to StarTeam databases and other databases managed by the same database server.74 | Using StarTeam with Microsoft SQL Server and SQL Server Express Databases

Understanding the Encoding DifferencesStarTeam Server sends data encoded as UTF-8. Microsoft SQL Server and SQL Server Express do not supportUTF-8 at the database level. They support nchar, nvarchar, and ntext to store fixed format Unicode data(UTF-16).• UTF-8 is a variable length character set in which the characters can expand from one to six bytes dependingon the language.• UTF-16 is a fixed length encoding mechanism in which every character expands to two bytes. UTF-16tends to use up more space than UTF-8 when applied to character sets in which one character alwaystranslates to one byte.Because of the way StarTeam encodes data, non-English StarTeam data is human-readable from StarTeamclients, but not from Microsoft SQL Server and SQL Server Express.This is also why it is critical that the ODBC drivers used by the Microsoft SQL Server and SQL Server Expressdatabases do no translation of the data. When StarTeam Server creates a DSN to be used with a serverconfiguration’s database, it turns off the ODBC autotranslation feature. Similarly, if you create your owndatabase, you must manually turn off the autotranslation feature. The SQL Server ODBC Data Source Testfor the Microsoft ODBC driver will fail because this feature is turned off, but that is correct behavior for DSNscreated for use with StarTeam server configurations.Overview of Using a Microsoft SQL Server DatabaseIf you will be using a Microsoft SQL Server database, you must complete the following tasks:1. Install Microsoft SQL Server.Important: When you install a Microsoft SQL Server database instance, it defaults to the collation forthe locale set for the operating system. This locale setting should be used so long as it is correct foryour team. Otherwise, when you automatically create a database from StarTeam Server, you cannotprovide a database name, user name, or password in your language.2. Install StarTeam Server. For more information, see Installing StarTeam Server on page 26.3. Create and start a StarTeam server configuration.• If you want StarTeam to automatically create the database, see Creating and Starting a ServerConfiguration on page 76.• Otherwise, see Creating a Database Manually: Overview on page 83.If you plan to use Microsoft SQL Server 2005, see Connecting to Microsoft SQL Server 2005 Databaseson page 76 for more information.Caution: After you have started using StarTeam with Microsoft SQL Server:• Never modify the database contents other than through a StarTeam client or Server Administrationtool. Direct database manipulation is unsupported.• Never modify vault files other than through a StarTeam client or a Server Administration tool.Using StarTeam with Microsoft SQL Server and SQL Server Express Databases | 75

Understanding the Encoding Differences<strong>StarTeam</strong> Server sends data encoded as UTF-8. Microsoft SQL Server and SQL Server Express do not supportUTF-8 at the database level. They support nchar, nvarchar, and ntext to store fixed format Unicode data(UTF-16).• UTF-8 is a variable length character set in which the characters can expand from one to six bytes dependingon the language.• UTF-16 is a fixed length encoding mechanism in which every character expands to two bytes. UTF-16tends to use up more space than UTF-8 when applied to character sets in which one character alwaystranslates to one byte.Because of the way <strong>StarTeam</strong> encodes data, non-English <strong>StarTeam</strong> data is human-readable from <strong>StarTeam</strong>clients, but not from Microsoft SQL Server and SQL Server Express.This is also why it is critical that the ODBC drivers used by the Microsoft SQL Server and SQL Server Expressdatabases do no translation of the data. When <strong>StarTeam</strong> Server creates a DSN to be used with a serverconfiguration’s database, it turns off the ODBC autotranslation feature. Similarly, if you create your owndatabase, you must manually turn off the autotranslation feature. The SQL Server ODBC Data Source Testfor the Microsoft ODBC driver will fail because this feature is turned off, but that is correct behavior for DSNscreated for use with <strong>StarTeam</strong> server configurations.Overview of Using a Microsoft SQL Server DatabaseIf you will be using a Microsoft SQL Server database, you must complete the following tasks:1. Install Microsoft SQL Server.Important: When you install a Microsoft SQL Server database instance, it defaults to the collation forthe locale set for the operating system. This locale setting should be used so long as it is correct foryour team. Otherwise, when you automatically create a database from <strong>StarTeam</strong> Server, you cannotprovide a database name, user name, or password in your language.2. Install <strong>StarTeam</strong> Server. For more information, see Installing <strong>StarTeam</strong> Server on page 26.3. Create and start a <strong>StarTeam</strong> server configuration.• If you want <strong>StarTeam</strong> to automatically create the database, see Creating and Starting a ServerConfiguration on page 76.• Otherwise, see Creating a Database Manually: Overview on page 83.If you plan to use Microsoft SQL Server 2005, see Connecting to Microsoft SQL Server 2005 Databaseson page 76 for more information.Caution: After you have started using <strong>StarTeam</strong> with Microsoft SQL Server:• Never modify the database contents other than through a <strong>StarTeam</strong> client or Server Administrationtool. Direct database manipulation is unsupported.• Never modify vault files other than through a <strong>StarTeam</strong> client or a Server Administration tool.Using <strong>StarTeam</strong> with Microsoft SQL Server and SQL Server Express Databases | 75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!