Sie sind auf Seite 1von 8

Quest Discovery Wizard for SQL Server Beta

SQL Storage Structure

3.0

2009 Quest Software, Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a software license or nondisclosure agreement. This software may be used or copied only in accordance with the terms of the applicable agreement. No part of this guide may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and recording for any purpose other than the purchasers personal use without the written permission of Quest Software, Inc. The information in this document is provided in connection with Quest products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Quest products. EXCEPT AS SET FORTH IN QUEST'S TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE AGREEMENT FOR THIS PRODUCT, QUEST ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. IN NO EVENT SHALL QUEST BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF QUEST HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Quest makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Quest does not make any commitment to update the information contained in this document. If you have any questions regarding your potential use of this material, contact: Quest Software World Headquarters LEGAL Dept 5 Polaris Way Aliso Viejo, CA 92656 www.quest.com email: legal@quest.com Refer to our Web site for regional and international office information. Trademarks Quest, Quest Software, the Quest Software logo and Aelita are trademarks and registered trademarks of Quest Software, Inc in the United States of America and other countries. Other trademarks and registered trademarks used in this guide are property of their respective owners. Quest Discovery Wizard for SQL Server Beta November 2009

SQL Storage
SQL Storage consists of 8 tables. Initially, there is only one row (in qdw_storage_config that contains SQL Storage version and baseline_id=0. When saving a baseline, each SQL Server instance is added to the qdw_servers table with the unique server_id and a reference to qdw_search_config through config_id foreign key. This key is used to get all instances in a given baseline. This allows for storing baselines history. Information about databases, processes and logins is stored in the following tables: qdw_ databases, qdw_online_applications, qdw_logins_on_server; and can be accessed by server_id. Query Packs are added to the qdw_query_packs table, where each of them is assigned a unique identifier. Query Pack results are added also to the qdw_query_pack_results table. Results for a certain server can be retrieved by server_id. Results are stored as XML in the ntext field. Hash code is calculated for each result and stored in the result_hashcode column. This makes comparison of Query Packs results faster.

SQL Storage Tables


qdw_search_config
This table contains parameters used for SQL Server instance search. Each baseline has a corresponding record in the table. The data is used to store general search configuration. Column name config_id create_date scan_mode att_login wmi_conn reg_conn tcp_conn net_server_ enum Data type Int datetime nvarchar(50) bit bit bit bit bit Description Unique identifier. This value can be used to retrieve instances in a specific baseline. Record creation date Search mode (DomainList, IpRange or Mixed) Whether Login Attempt was used Whether WMI Connection was used Whether Network Registry Connection was used Whether TCP Connect was used Whether Net SQL Server Enum was used

Discovery Wizard SQL Storage Structure

Column name add_search ip_list domain_list

Data type

Description

bit nvarchar(2000) nvarchar(2000)

Whether Active Directory Search was used IP address list Domain list

qdw_servers
This table contains detailed information about the SQL Server instances and operating systems. Column name server_id config_id server_name instance_name domain ip_address port memory_size cpu_count win_curr_ver win_name win_service_pack host_descr platform sql_server_product_ name sql_server_version sql_server_edition Data type int int nvarchar(256) nvarchar(256) nvarchar(64) nvarchar(16) int int int nvarchar(50) nvarchar(128) nvarchar(64) nvarchar(256) nvarchar(64) nvarchar(256) nvarchar(64) nvarchar(64) Description SQL Server instance identifier Search configuration identifier (FK) Server name SQL Server instance name Domain IP address Port Memory size CPU count OS version number OS name OS service pack Host description Platform (e.g. INTEL x86) SQL Server product name SQL Server version SQL Server edition

Discovery Wizard SQL Storage Structure

Column name sql_server_service_ pack sql_server_language sql_server_root_dir sql_server_collation litespeed_licence litespeed_engine litespeed_cpu_count litespeed_expires_date methods comments dba_notes

Data type nvarchar(64) nvarchar(64) nvarchar(256) nvarchar(64) nvarchar(64) nvarchar(64) int datetime nvarchar(128) nvarchar(256) nvarchar(256)

Description SQL Server service pack SQL Server language SQL Server root folder SQL Server collation LiteSpeed license LiteSpeed version Number of CPUs allowed by the LiteSpeed license LiteSpeed license expiration date Method that detected the SQL Server instance Comments (not used) DBA Notes

qdw_databases
The table contains database information. Column name db_id server_id name owner_name created size state Data type int int nvarchar(256) nvarchar(256) datetime int int Usage Unique identifier SQL Server instance identifier (FK) Database name Database owner Date and time when the database was created Database size (KB) Database state: 0 1 2 3 Online Restoring Recovering RecoveryPending

Discovery Wizard SQL Storage Structure

Column name

Data type

Usage 4 Suspect 5 Emergency 6 Offline

compatibility_level last_backup

int datetime

Compatibility level (e.g. 80 SQL Server 2000) Date and time when last backed up

qdw_logins_on_server
This table contains information about logins. Column name login_id server_id name type is_connected is_disabled process_name Data type int int nvarchar(256) nvarchar(256) bit bit nvarchar(256) Usage Unique identifier SQL Server instance identifier (FK) Login Login type (Sql User, Windows User or Windows Group) Whether login is connected (1/0) Whether login is blocked (1/0) List of running processes

qdw_online_applications
This table contains information about applications working with SQL Server instance. Column name app_id server_id name host_proc_id login_name Data type int int nvarchar(256) int nvarchar(256) Usage Unique identifier SQL Server instance identifier (FK) Process name PID Process owner name

Discovery Wizard SQL Storage Structure

qdw_query_packs
This table contains information about registered Query Packs. Column name pack_id pack_name Data type int nvarchar(256) Usage Unique identifier Query Pack name

qdw_query_pack_results
This table contains Query Packs results. Column name result_id server_id pack_id query_date result_value result_hashcode Data type int int int datetime ntext nvarchar(32) Usage Unique identifier SQL Server instance identifier (FK) Query Pack identifier (FK) Date and time when the result was produced Result (XML) Result hash code

qdw_storage_config
This table contains the SQL Storage settings. Column name version baseline_id Data type nvarchar(16) int Usage SQL Storage version (different from Discovery Wizard version) Current baseline identifier

Discovery Wizard SQL Storage Structure