Table of Contents

Advertisement

Cisco TMS SQL Database
Product Configuration Guide
December 2010
D14216.01

Advertisement

Table of Contents
loading

Summary of Contents for Cisco TMS SQL DATABASE

  • Page 1 Cisco TMS SQL Database Product Configuration Guide December 2010 D14216.01...
  • Page 2: Table Of Contents

    Table of contents Table of contents Tip format ..............................5 TIP T100 –Different types of SQL Server ....................6 Extra reference links ..........................6 TIP T101 –SQL Server management tools ..................7 Extra reference links ..........................7 TIP T103 –SQL Versions bundled with Cisco TMS ..................8 TIP T104 –Cisco TMS SQL version compatibility ..................
  • Page 3 Table of contents Pros ..............................29 Cons ..............................30 Alternative 2 – Use Cisco TMS Installer to install SQL Server ............31 Pros ..............................31 Cons ..............................31 SQL code to update indexes and statistics ..................32 Extra reference links .......................... 33 TIP T305 –Resetting/changing/forgotten sa password ................
  • Page 4 Document revision history Revision 1.0 Initial Release of Document Revision 1.1 Applied Cisco techdocs template, product names changed, TANDBERG references changed to Cisco Revision 1.2 Applied new Cisco product names Revision 1.3 stage rebranding...
  • Page 5: Tip Format

    Introduction Introduction This document is a collection of various tips for Cisco TelePresence Management Suite (Cisco TMS) administrators working with SQL backend databases. Because Cisco TMS uses a standard SQL server for its database, there are many tools and methods available to complete tasks. Many of these tasks can be completed in several different ways or with different commands.
  • Page 6: Tip T100 -Different Types Of Sql Server

    Tips category – General Tips category – General TIP T100 –Different types of SQL Server Cisco TMS Versions SQL Server Versions SQL v7 – All Versions MSDE – All Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 –...
  • Page 7: Tip T101 -Sql Server Management Tools

    Tips category – General TIP T101 –SQL Server management tools Cisco TMS Versions SQL Server Versions SQL v7 – All Versions MSDE – All Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express –...
  • Page 8: Tip T103 -Sql Versions Bundled With Cisco Tms

    Tips category – General TIP T103 –SQL Versions bundled with Cisco TMS Cisco TMS Versions SQL Server Versions To simplify installation for Cisco TMS customers, the Cisco TMS installer as an option would install a free version of the SQL Server engine. The version has changed as Cisco TMS requirements and version availability has matured.
  • Page 9: Tip T104 -Cisco Tms Sql Version Compatibility

    Tips category – General TIP T104 –Cisco TMS SQL version compatibility Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions The SQL Server versions supported for each version of Cisco TMS are listed in the Cisco TMS Release notes.
  • Page 10: Tip T105 -Cisco Tms Database And Files

    Tips category – General TIP T105 –Cisco TMS database and files Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions The Cisco TMS database is installed and maintained by the Cisco TMS installer. Since Cisco TMS v9.0 –...
  • Page 11: Tip T106 -The Sql Server Instance

    Tips category – General TIP T106 –The SQL Server instance Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions SQL Servers are installed as the default instance, or a named instance. The default instance is normally reached via IP or hostname of the server.
  • Page 12: Tip T107 - Identifying The Sql Server Instance Name

    Tips category – General TIP T107 – Identifying the SQL Server instance name Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions If you do not know the SQL Server’s instance name, you cannot connect to it.
  • Page 13: Tip T108 -Sql Authentication Modes

    Tips category – General TIP T108 –SQL authentication modes Cisco TMS Versions SQL Server Versions SQL v7 – All Versions MSDE – All Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions When a client connects to a SQL server, it must authenticate to the server with a SQL Login.
  • Page 14: Tip T109 -When Do I Need A Full Version Of Sql

    Tips category – General Tip T109 –When do I need a full version of SQL? Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions Cisco TMS 11 and newer SQL 2005 – All Versions SQL 2005 Express –...
  • Page 15: Tip T109 -Using Osql For Cisco Tms Tasks

    Tips category – General TIP T109 –Using osql for Cisco TMS tasks Cisco TMS Versions SQL Server Versions SQL v7 – All Versions MSDE – All Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express –...
  • Page 16: Simple Examples For Cisco Tms Use

    Tips category – General Specify the database to connect to. Equivalent to saying ‘use -d database databasename’. For Cisco TMS operations, you will almost always specify the tmsng database Examples: Connect to database named -d tmsng tmsng Executes a query and immediately exits. Use double quotation marks -Q “query”...
  • Page 17: Tip T200 -Enabling Remote Access To Sql

    Tips category – Networking Tips category – Networking TIP T200 –Enabling remote access to SQL Cisco TMS Versions SQL Server Versions SQL 2005 – All Versions 11.0 or newer SQL 2005 Express – All Versions SQL Server 2005 installs in a secure fashion that only allows local connections to the database by default.
  • Page 18: Tip T201 -Sql Server 2005 And Firewalls

    Tips category – Networking TIP T201 –SQL Server 2005 and firewalls Cisco TMS Versions SQL Server Versions SQL 2005 – All Versions 11.0 or newer SQL 2005 Express – All Versions SQL Server 2005 requires one TCP port per named instance. Named instances by default will run on an unassigned dynamic port.
  • Page 19: Extra Reference Links

    Tips category – Networking Extra reference links How to: Configure a Firewall for SQL Server Access How to: Configure a Server to Listen on a Specific TCP Port Cisco TMS Database Knowledge Tips Page 19 of 35...
  • Page 20: Tip T202 -Sql Server 2000 And Firewalls

    Tips category – Networking TIP T202 –SQL Server 2000 and Firewalls Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions Cisco TMS 9.0 through 11.9.1 MSDE 2000 – All Versions SQL Server 2000 requires one TCP port per named instance. The first instance will run on TCP Port 1433.
  • Page 21: Extra Reference Links

    Tips category – Networking Extra reference links How to configure an instance of SQL Server to listen on a specific TCP port or a dynamic port Cisco TMS Database Knowledge Tips Page 21 of 35...
  • Page 22: Tip T300 -Backing Up The Cisco Tms Database Using Osql

    Tips category – Maintaining/Upkeep Tips category – Maintaining/Upkeep TIP T300 –Backing up the Cisco TMS Database using osql Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions A SQL database must be backed up from the SQL Server to generate a .bak file and then the resulting file can be backed up.
  • Page 23: Tip T301 -Restoring The Cisco Tms Database Using Osql

    Tips category – Maintaining/Upkeep TIP T301 –Restoring the Cisco TMS Database using osql Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions A database can be restored to an existing database, or have it create a database if it does not exist.
  • Page 24: Extra Reference Links

    Tips category – Maintaining/Upkeep RESTORE databasename FROM DISK = ‘filename’ WITH MOVE ‘file’ TO ‘path\filename’, MOVE ‘file’ to ‘path\filename’ If the new server’s DATA directory is d:\databases the command syntax to restore the backup to the new folder would be: osql –E –S servername –Q “RESTORE database FROM disk = ‘c:\tms\backup.bak’...
  • Page 25: Tip T302 -Automating Backups With Sql 2005 Express

    Tips category – Maintaining/Upkeep TIP T302 –Automating backups with SQL 2005 Express Cisco TMS Versions SQL Server Versions SQL 2005 – All Versions Cisco TMS 11.0 or newer SQL 2005 Express – All Versions SQL 2005 Express can be managed with the SQL Management Studio Express (SMSE) which makes it easy to perform tasks - including backups.
  • Page 26: Extra Reference Links

    Tips category – Maintaining/Upkeep 13. Click OK. If prompted, supply the password for the account again Extra reference links Expressmaint website Cisco TMS Database Knowledge Tips Page 26 of 35...
  • Page 27: Tip T303 -Detaching And Reattaching Databases

    Tips category – Maintaining/Upkeep TIP T303 –Detaching and reattaching databases Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions A set of database files can be detached from a SQL server, which frees up the files and later attached to the same SQL server or another.
  • Page 28: Tip T304 -Upgrading Msde 2000 To Sql 2005 Express

    Tips category – Maintaining/Upkeep TIP T304 –Upgrading MSDE 2000 to SQL 2005 Express Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions Cisco TMS v9.0 and newer SQL 2005 – All Versions SQL 2005 Express – All Versions Microsoft provides several alternatives for upgrading your SQL Server version.
  • Page 29: Cisco Tms Customers Running Msde 2000 And Cisco Tms Versions 11.0 Through 11.9.1

    Tips category – Maintaining/Upkeep 16. For Error Reporting, leave the defaults and click Next 17. Click Install on the summary page to start the installation. Wait for the installation to complete and click Finish 18. Move the tmsng.mdf file you backed up earlier to the data directory of the new SQL Server. Move the tmsng.mdf file to the C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data directory 19.
  • Page 30: Cons

    Tips category – Maintaining/Upkeep Quicker Cons Requires you complete the installation of SQL Server steps manually instead of automated Keeps older Instance Name – will not be in line with Cisco TMS defaults going forward Less chance for reconfiguration if desired The following instructions assume you have MSDE 2000 and Cisco TMS on the same server in the default Cisco TMS configuration.
  • Page 31: Alternative 2 - Use Cisco Tms Installer To Install Sql Server

    Tips category – Maintaining/Upkeep statistics section near the end of this tip to create a SQL script to perform the task. Return here when completed. 16. You should restart the Cisco TMS server to allow all services the chance to reconnect to the SQL database.
  • Page 32: Sql Code To Update Indexes And Statistics

    Tips category – Maintaining/Upkeep 12. The next screen prompts you for your release and option keys. Do not enter any keys and click Next. You will be warned this will leave the server in Trial mode. Acknowledge the warning and continue. 13.
  • Page 33: Extra Reference Links

    Tips category – Maintaining/Upkeep FROM sysobjects WHERE xtype = 'U' order by name open c1 fetch next from c1 into @table_name while @@Fetch_Status = 0 begin print(@table_name) DBCC DBREINDEX (@table_name, '') fetch next from c1 into @table_name print('finished') close c1 deallocate c1 DECLARE @table_name varchar(1000),@sql nvarchar(4000) declare c1 cursor for SELECT name...
  • Page 34: Tip T305 -Resetting/Changing/Forgotten Sa Password

    Tips category – Maintaining/Upkeep TIP T305 –Resetting/changing/forgotten sa password Cisco TMS Versions SQL Server Versions SQL 2000 – All Versions MSDE 2000 – All Versions SQL 2005 – All Versions SQL 2005 Express – All Versions If the sa password for the Cisco TMS SQL Server needs to be changed or has been lost/forgotten, the account’s password may be reset by another administrator account.
  • Page 35: Table Of Contents Page 2 Of

    Tips category – Maintaining/Upkeep THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.

Table of Contents