Vous êtes sur la page 1sur 15

Installation and configuration of Microsoft SQL-Server for TeamViewer Manager

Table of contents:
1 2 3 4 5 6 Important steps for installing SQL Server 2005 ............................................................................................... 2 Final configuration steps for SQL Server 2005 ................................................................................................ 4 Configuration of existing SQL Server 2005 installations ................................................................................. 6 Important steps for installing SQL Server 2008 ............................................................................................... 8 Final configuration steps for SQL-Server 2008 .............................................................................................. 12 Configuration of existing SQL Server 2008 installations ................................................................................ 14

2012 TeamViewer GmbH, as of 09/2012

Important: For security reasons, Microsoft recommends that you do not install SQL Server on a domain controller. You can find further information on the following website http://technet.microsoft.com/engb/library/ms144228.aspx.

Important steps for installing SQL Server 2005

TeamViewer Manager uses SQL server authentication for accessing the database. During the installation, please activate Mixed Mode which enables both Windows Authentication and SQL server authentication. Moreover, when using Named Instances the SQL-Browser service has to be started. The following pages illustrate the relevant steps for making the required setting during the installation process.

Registration Information In the installation step Registration Information you would have to uncheck the checkbox Hide

advanced configuration options to be able to take


the necessary configuration steps.

Instance Name In the installation step Instance Name you can choose between Default instance and Named

instance. When choosing Named instance please


enter the instance name - it will be needed for the configuration of the TeamViewer Manager database later on. (Instance names allow multiple parallel installations of Microsoft SQL Server. In case you use the Express Edition, the standard instance name is SQLEXPRESS.)

Service Account Please activate the checkbox SQL Browser in the installation step Service Account.

Authentication Mode In the step Authentication Mode please select

Mixed Mode and set a password (system


administrator account). This information will be needed later on for the database configuration of TeamViewer Manager. Please proceed with the next steps and finish the installation.

2 Final configuration steps for SQL Server 2005


After the installation of Microsoft SQL-Server 2005 please make sure that remote computers can access the SQL server. Open the SQL Server 2005-Surface Area Configuration (Start | All Programs | Microsoft SQL Server 2005 | Configuration Tools | SQL Server- Surface Area Configuration) Please click on Surface Area Configuration for Services and Connections

Navigate to the node [Instance Name] | Database Engine | Remote Connections in the tree structure on the left side. Activate Local and remote connections as well as the sub item Using both TCP/IP and named pipes and click on Apply.

Switch back to [Instance Name] | Database Engine | Service and then click on Stop and Start one after
another to restart the SQL server and for the changes to take effect. Click on OK to close the dialog.

Detailed information by Microsoft can be found at: http://support.microsoft.com/kb/914277

Configuration of existing SQL Server 2005 installations

If you would like to use an existing installation of SQL Server 2005 you might have to change some settings as described below: How to activate the Mixed Mode: Press Windows-R to open the Run... dialog. Enter regedit and press Enter. Navigate to the following node: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer Change the value for LoginMode in DWORD to '2'. Press Windows-R to open the Run... dialog. Enter services.msc and press Enter to open the Services console. Navigate to the list item SQL Server [Instance Name]. Select Restart from the context menu (right mouse button).

How to activate the SQL Server Login 'sa' Press Windows-R to open the Run... dialog. Enter cmd and press Enter to open the console. Enter sqlcmd S localhost\[Instance Name]. The instance name can be found e.g. in Services in the

Control Panel. In the SQL Server 2005 Express Edition the default instance name is: SQLEXPRESS.
After that, please enter the following commands:

How to activate the SQL Server Browser service: Press Windows-R to open the Run... dialog. Enter services.msc and press Enter to start the Services. Navigate to the list item SQL Server-Browser. Select Start from the context menu if the service has not been started yet.

Afterwards, please perform the steps as explained in step 2 Final configuration steps for SQL Server 2005 to ensure that a remote access to the server is possible.

4 Important steps for installing SQL Server 2008


TeamViewer Manager uses SQL server authentication for accessing the database. During the installation, please activate Mixed Mode which enables both Windows Authentication and SQL server authentication. Moreover, when using Named Instances the SQL Browser service has to be started. The following pages illustrate the relevant steps for making the required setting during the installation process. Feature Selection: In the step Feature Selection you would have to activate the check box Database Engine Services in order to enable a controlled access to your data, a fast processing of all transactions as well as to maintain a high availability.

Instance Configuration 8

In the step Instance Configuration you can choose between Default instance and Named instance. When choosing a Named instance, please note down the instance name - it will be needed for the configuration of the TeamViewer Manager database later on. Instance names allow multiple parallel installations of Microsoft SQL Server. In case you use the Express Edition, the standard instance name is SQLEXPRESS.

Server Configuration In the step Server Configuration, please click on "Use the same account for all SQL server services" and select the option NT AUTHORITY\LOCAL SERVICE in the field Account Name. Now please set the Startup Type of the option SQL Server Browser to Automatic.

10

Database Engine Configuration In the step Database Engine Configuration you would select the Mixed Mode and enter a password for the system administrator account. Then please specify a SQL Server-Administrator. If the current user is supposed to be added as a SQL Server-Administrator then please press Add Current User. To add a user manually, please click on Add... This information will be needed for the configuration of the TeamViewer Manager database later on. Please proceed with the next steps and finish the installation.

11

Final configuration steps for SQL-Server 2008


Open the Sql Server-Configuration-Manager (Start | All Programs | Microsoft SQL Server 2008 | Configuration Tools | Sql Server-ConfigurationManager) Click on SQL Server-Network Configuration. Please select Protocols for [Instance Name] and activate the protocols Shared Memory, Named Pipes and TCP/IP by doing a right click on the respective protocol and select Activate in the context menu.

After the installation of the Microsoft SQL-Server 2008 the clients have to be enabled to access the SQL server:

12

Afterwards restart the services SQL Server [INSTANCE NAME] und SQL Server Browser. (Start | Control Panel | Administrative Tools | Services)

Detailed information by Microsoft can be found at: http://msdn.microsoft.com/en-us/library/ms174212.aspx

13

6 Configuration of existing SQL Server 2008 installations


If you would like to use an existing installation of SQL Server 2008 you might have to change some settings as described below: How to activate the Mixed Mode: Press Windows-R to open the Run... dialog. Enter regedit and press Enter. Navigate to the following node: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.[INSTANCE NAME]\MSSQLServer Change the value for LoginMode in DWORD to '2'. Press Windows-R to open the Run... dialog. Enter services.msc and press Enter to open the Services console. Navigate to the list item SQL Server [Instance Name]. Select Restart from the context menu (right mouse button).

How to activate the SQL Server Login 'sa': Press Windows-R to open the Run... dialog. Enter cmd and press Enter to open the console. Enter sqlcmd S localhost\[Instance Name]. The instance name can be found e.g. in Services in the

Control Panel. In SQL Server 2005 Express Edition the default instance name is: SQLEXPRESS.
After that, please enter the following commands:

14

How to activate the SQL-Server Browser service: Press Windows-R to open the Run... dialog. Enter services.msc and press Enter to start the Services. Navigate to the list item SQL Server-Browser. Select Start from the context menu if the service has not been started yet.

Afterwards, please perform the steps as explained in step 5 Final configuration steps for SQL-Server 2008 to ensure that a remote access to the server is possible.

15

Vous aimerez peut-être aussi