Layton ServiceDesk - Procedures - General - Sending your Database to Support

From Layton Support
(Difference between revisions)
Jump to: navigation, search
m (Added Table of Contents)
(Major rewrite)
Line 2: Line 2:
 
__FORCETOC__
 
__FORCETOC__
 
=Overview=
 
=Overview=
On occasion, Support may need to examine your database to understand the cause of an issue or to repair your database.
+
On occasion, Support may need to examine your database to understand the cause of an issue or to repair your database. There is a preparatory procedure, and two different procedures depending on whether you will be sending the whole database or the database without Requests.
  
'''Please indicate which version of SQL Server you are using. Please also supply the password for the built-in ''admin'' account.'''
+
=Preparatory Steps=
 +
==Gather Information About the Database==
 +
Collect the following information for later use:
  
=Sending Complete Database=
+
#The '''[[Layton ServiceDesk™ - Procedures - General - How to Find the Version Number|application version]]''' of your installation of Layton ServiceDesk.
In most instances, you will be sending the complete database.
+
#The version of SQL Server you are using.
 +
#The password for the built-in ''admin'' account. If you have security concerns about sending the database out with the admin password, '''[[Layton ServiceDesk™ - Settings - Company Structure - Manage Analyst|change it]]''' prior to backup and sending.
  
 +
==Create Database Backup==
 
#Use SQL Server Management Studio (SSMS) to back up the SQL database to a .bak file. Note the following settings:<br /><p>[[File:Lsd db backup01.png|link=]]<br /><br />[[File:Lsd db backup02.png|link=]]</p>
 
#Use SQL Server Management Studio (SSMS) to back up the SQL database to a .bak file. Note the following settings:<br /><p>[[File:Lsd db backup01.png|link=]]<br /><br />[[File:Lsd db backup02.png|link=]]</p>
#Please indicate the '''version number''' of Layton ServiceDesk and the '''version of SQL Server''' you are using. It is suggested that you use this naming convention for the backup file:<p><code>lsd_VERSION_sqlVERSION_YEARMONTHDAY.bak</code></p>For example, if you were backing up a version 6.4.8.1 database running on SQL Server 2008 R2 on 29 April 2014, the resultant filename would be:<p><code>lsd_6481_sql2008r2_20140429.bak</code></p>
 
#'''Important!''' You must zip the file before sending to greatly reduce its size. Send the .zip file to Support via our '''[http://laytontech.leapfile.net upload service]'''.
 
  
=Sending Database Without Requests=
+
=Preparing the Database for Sending=
 +
==Complete Database==
 +
In most instances, you will be sending the complete database. In this case, you can skip to step '''[[Layton ServiceDesk™ - Procedures - General - Sending your Database to Support#Prepare File for Upload|Prepare File for Upload]]'''.
 +
 
 +
==Database Without Requests==
 
If there is a security concern regarding the contents of the database, you can strip out all the Requests prior to sending.
 
If there is a security concern regarding the contents of the database, you can strip out all the Requests prior to sending.
  
Line 27: Line 33:
 
4. Launch Layton ServiceDesk and purge all closed Requests per '''[[Layton ServiceDesk™ - Utilities - Purging#Requests|this procedure]]'''.
 
4. Launch Layton ServiceDesk and purge all closed Requests per '''[[Layton ServiceDesk™ - Utilities - Purging#Requests|this procedure]]'''.
  
5. In Layton ServiceDesk, check that there are no Requests. If you want to do this in Management Studio, use this query. The result should be 0:
+
5. In Layton ServiceDesk, check that there are no Requests. If you want to do this in Management Studio, use this query. The result should be ''0'':
  
 
     SELECT  COUNT(sys_request_id)
 
     SELECT  COUNT(sys_request_id)
 
     FROM    request
 
     FROM    request
  
6. Send the database copy to Support per '''[[Layton ServiceDesk™ - Procedures - General - Sending your Database to Support|this procedure]]'''.
+
=Prepare File for Upload=
 +
==Rename the Backup File==
 +
Please use this naming convention for the backup file:
 +
 
 +
    lsd_VERSION_sqlVERSION_YEARMONTHDAY.bak
 +
 
 +
For example, if you were backing up a version 6.5.9 database running on SQL Server 2008 R2 on 25 Jan. 2016, the resultant filename would be:
 +
 
 +
    lsd_659_sql2008r2_20160125.bak
 +
 
 +
==Zip the Backup File==
 +
'''Important!''' You must zip the file before sending to greatly reduce its size.
 +
 
 +
=Send the Database=
 +
Send the .zip file to Support via our secure '''[http://laytontech.leapfile.net upload service]'''.
 +
<p align="right">[[File:btn_back_up.png|link=User Guide for Layton ServiceDesk™]] [[User Guide for Layton ServiceDesk™|<u>Back to Contents</u>]]</p>

Revision as of 04:56, 25 January 2016

Btn back up.png Back to Contents

Contents

Overview

On occasion, Support may need to examine your database to understand the cause of an issue or to repair your database. There is a preparatory procedure, and two different procedures depending on whether you will be sending the whole database or the database without Requests.

Preparatory Steps

Gather Information About the Database

Collect the following information for later use:

  1. The application version of your installation of Layton ServiceDesk.
  2. The version of SQL Server you are using.
  3. The password for the built-in admin account. If you have security concerns about sending the database out with the admin password, change it prior to backup and sending.

Create Database Backup

  1. Use SQL Server Management Studio (SSMS) to back up the SQL database to a .bak file. Note the following settings:

    Lsd db backup01.png

    Lsd db backup02.png

Preparing the Database for Sending

Complete Database

In most instances, you will be sending the complete database. In this case, you can skip to step Prepare File for Upload.

Database Without Requests

If there is a security concern regarding the contents of the database, you can strip out all the Requests prior to sending.

1. In Management Studio, back up your live database and restore it with a different name in order to produce a copy.

2. In Management Studio, on the database copy, run this query to set the status of every Request to Closed:

   UPDATE  request
   SET     sys_requeststatus = 0

3. Preferably, in your test Layton ServiceDesk installation, or if you don't have one, your live installation (this will be disruptive to anyone using the system, so do it when users are offline), launch DBTool to Connect to Existing Database. This will connect Layton ServiceDesk to the database copy.

4. Launch Layton ServiceDesk and purge all closed Requests per this procedure.

5. In Layton ServiceDesk, check that there are no Requests. If you want to do this in Management Studio, use this query. The result should be 0:

   SELECT  COUNT(sys_request_id)
   FROM    request

Prepare File for Upload

Rename the Backup File

Please use this naming convention for the backup file:

   lsd_VERSION_sqlVERSION_YEARMONTHDAY.bak

For example, if you were backing up a version 6.5.9 database running on SQL Server 2008 R2 on 25 Jan. 2016, the resultant filename would be:

   lsd_659_sql2008r2_20160125.bak

Zip the Backup File

Important! You must zip the file before sending to greatly reduce its size.

Send the Database

Send the .zip file to Support via our secure upload service.

Btn back up.png Back to Contents

Personal tools
Namespaces

Variants
Actions
Main Page
Online User Guides
General Support
Release Notes
Toolbox