CASE STUDY Searching SQL Server databases with SQL Search at Republic Bank



Similar documents
CASE STUDY FINANCE. Republic Bank - Searching SQL Server databases, a typical quest begins...

Job Automation. Why is job automation important?

SQL DBA Bundle. Data Sheet. Data Sheet. Introduction. What does it cost. What s included in the SQL DBA Bundle. Feedback for the SQL DBA Bundle

Working with SQL Server Agent Jobs

How to set up SQL Source Control. The short guide for evaluators

Managing Third Party Databases and Building Your Data Warehouse

1. SQL Search 1 documentation Requirements Installing Upgrading Using SQL Search Troubleshooting...

W I S E. SQL Server 2012 Database Engine Technical Update WISE LTD.

CASE STUDY LUMIDATA. SQL Toolbelt. Essential tools for SQL Server. 91% of Fortune 100 companies use Red Gate

Database Maintenance Essentials

INTRODUCING AZURE SEARCH

Fruit Machine. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Synchronizing databases

The easy way to a nice looking website design. By a total non-designer (Me!)

Administrator Guide v2.x 5/1/2015

IDERA WHITEPAPER. The paper will cover the following ten areas: Monitoring Management. WRITTEN BY Greg Robidoux

How Digital Outsource Services DBA team catch deployment problems

Microsoft Access Calendar Scheduling Database/Template Installation Instructions

SQL Server Performance Tuning for DBAs

Computing and Communications Services (CCS) - LimeSurvey Quick Start Guide Version 2.2 1

A How-to Guide By: Riaan Van Der Merwe, General Manager, Dynamics, Neudesic

Visual Studio.NET Database Projects

BarTender Version Upgrades. Best practices for updating your BarTender installation WHITE PAPER

Install MS SQL Server 2012 Express Edition

Using Excel As A Database

Guide to the MySQL Workbench Migration Wizard: From Microsoft SQL Server to MySQL

WHAT IS THE CONFIGURATION TROUBLESHOOTER?

BI xpress Product Overview

Google Drive: Access and organize your files

PassTest. Bessere Qualität, bessere Dienstleistungen!

Database Build and Release will get started soon

Using Form Scripts in WEBPLUS

Global Search v.2.8 for Microsoft Dynamics CRM 4.0

PROFESSIONAL CLAIMS ENTRY CMS-1500

$99.95 per user. SQL Server 2008/R2 Database Administration CourseId: 157 Skill level: Run Time: 47+ hours (272 videos)

Search Engine optimization

SQL Server Query Tuning

5 barriers to database source control and how you can get around them

UMass Amherst Secure Access Service Juniper and Junos VPN

The Social Accelerator Setup Guide

Errors That Can Occur When You re Running a Report From Tigerpaw s SQL-based System (Version 9 and Above) Modified 10/2/2008

Forms Printer User Guide

SQL SERVER FREE TOOLS

Microsoft Query, the helper application included with Microsoft Office, allows

So you want to create an a Friend action

Facilitating Efficient Data Management by Craig S. Mullins

Before you may use any database in Limnor, you need to create a database connection for it. Select Project menu, select Databases:

Using Metadata Manager for System Impact Analysis in Healthcare

How To Create A Replica In A Database On A Microsoft Powerbook (Ahem) On A Linux Server (A.K.A.A)

SQL Server Performance Intelligence

Click Studios. Passwordstate. Upgrade Instructions to V7 from V5.xx

Author: Ryan J Adams. Overview. Policy Based Management. Terminology

Data processing goes big

Setting up SQL Translation Framework OBE for Database 12cR1

Free Small Business Security Q&A Version of a Single digit Pentragilium

Continuous integration for databases using Red Gate tools

Using your content management system EXPRESSIONENGINE CMS DOCUMENTATION UKONS

Back From the Dead: How to Restore a SQL Server in 60 Minutes or Less*

QualysGuard WAS. Getting Started Guide Version 3.3. March 21, 2014

DBA xpress Product Overview

Chapter 3 ADDRESS BOOK, CONTACTS, AND DISTRIBUTION LISTS

SSMS Built in Reports for Server and Database Monitoring

DATABASE VIRTUALIZATION AND INSTANT CLONING WHITE PAPER

2 SQL in iseries Navigator

Development Best Practices

X1 Professional Client

PassTest. Bessere Qualität, bessere Dienstleistungen!

SQL Server Auditing. By Minette Steynberg. Audit all SQL Server activities using ApexSQL Comply

SQL Server Training Course Content

Cal Answers Analysis Training Part I. Creating Analyses in OBIEE

MS SQL Server DBA Training Course. Table of Contents

SQL Server Developer Training Program. Topics Covered

Swan Housing Association

10 Things DBAs Probably Don t Know LiteSpeed Can Do. written by Brent Ozar, SQL Server DBA

SQL SERVER DEVELOPER Available Features and Tools New Capabilities SQL Services Product Licensing Product Editions Will teach in class room

Embarcadero DB Change Manager

How to Choose a Domain Name for Your Blog

Gmail Merge. Step 1: Writing the actual e mail

MONAHRQ Installation Permissions Guide. Version 2.0.4

GO MARKETS MT4 FOR MAC

About database backups

How to Create a Campaign Using Quick Guides and Web Parler

Staying Organized with the Outlook Journal

Hypercosm. Studio.

CONSOLEWORKS WINDOWS EVENT FORWARDER START-UP GUIDE

Samsung Xchange for Mac User Guide. Winter 2013 v2.3

Nintex Workflow 2013 Help

Database Administrator Certificate Capstone Project Evaluation Checklist

Kickstart Your Profits With. Prosper 202. Your Quickstart Guide to Profitable Tracking. By Sheldon Gray

ProxiBlue Dynamic Category Products

Getting Started Guide - Desktop

Correct Answer: J Explanation. Explanation/Reference: According to these references, this answer looks correct.

Using SQL Monitor at Interactive Intelligence

>>Dream, Strive and Achieve Victory>> SQL Server 2005/2008 DBA SSIS and SSRS Training Contact

Plug-In for Informatica Guide

EVault for Data Protection Manager. Course 401 EDPM Troubleshooting Basics

Improving database development. Recommendations for solving development problems using Red Gate tools

Learning Objective. Purpose The purpose of this activity is to give you the opportunity to learn how to set up a database and upload data.

Introducing SQL Server Express

Transcription:

CASE STUDY Searching SQL Server databases with SQL Search at Republic Bank Chris Yates Database Administration Manager

Content Introduction A typical quest begins: hunting down an Agent job What else is possible? Wish list Summary 3 4 7 8 8 2

DBAs responsible for 1492 databases, spread across four environments (Development, QA, UAT/Staging, and Production) and 90 servers. When way to search for objects in a particular database, or in a particular SQL Server instance, or even for particular strings within the object metadata. After all, even the most dedicated team will likely struggle to memorize every schema and every line of code in every database object! Very limited searching on object names is available within SSMS Object Explorer (click F7 to open the search bar), but we need more than that. We might try the brute force approach of scripting out the database schema into a text editor that has good string searching capabilities, but then often we want to search other objects too, such as SQL Server Agent jobs, SSIS Packages, and so on. With a bit of patience and some handrolled scripts and stored procedures, Phil Factor has proved that there is quite a lot of information we can drag out of the Information Schema and System Catalog views see Exploring SQL Server table metadata with SSMS and TSQL and Exploring your database schema with SQL. However, for sheer ease of use, the tool I reach for when I need to perform a detailed search, is Red Gate s SQL Search, a free plug-in for SSMS. It allows me to search the object metadata across multiple object types and databases, and has saved me many hours of time and a lot of frustration. 3

A typical quest begins: hunting down an Agent job During a recent, typical day at work, I was tasked with implementing a maintenance job on one of our servers. I knew that a similar job existed already and I could recall a portion of its name, and even the job step name, but the server hosted a mind-boggling number of jobs and, for the life of me, I couldn t find the one I wanted. Frustration started to set in, and I was just about to give up and rewrite the job from scratch, when I recalled reading somewhere that the latest version of SQL Search had expanded its search capabilities to include jobs. It took a few seconds to download and install the upgrade to my current version, and then I opened up SSMS and fired up SQL Search (I am demoing this use case on my own local SQL Server instance rather than a Production instance!). Figure 1 - Opening SQL Search in SSMS Next, I had to define my search. I knew a phrase in my job name but didn t know the whole name, so I typed in what I knew, without selecting the Exact match search option. 4

Figure 2 - searching for part of a job name Next, I clicked on the All Object Type drop-down to reveal, beneath the list of searchable database objects, the Server Object called Jobs. Even though I wanted only jobs, I was intrigued to see what else it would find, so I went ahead and checked them all. Figure 3 - The All Object Type drop-down 5

After a few moments, SQL Search returns my results: Figure 4 - Results in SQL Search In the Object Name column, I see my job name, and the Detail column even provides the actual job step detail! Since then, I ve used this job search on numerous occasions. A quick search on a keyword will reveal job steps associated with, for example, SSIS package execution, far quicker than drilling down into the Agent to review each individual step. 6

What else is possible? Most often, I use SQL Search to track down all occurrences of a specific schema object, or column in a table, or to find the whole set of schema objects related to a particular business unit. For example, we ll be working with a vendor on a process flow for an upgrade and will need to review all schema objects related to that specific business unit. Since each business unit uses strict naming conventions for their business objects, a quick search on lawyer, say, will return all of the tables, views, and stored procedures related to this unit. Other times, a developer will approach us with a tuning or maintenance question about a particular stored procedure, but won t necessarily know in which of the 1500 databases it is located. Fortunately, a DBA will know the server on which to look and, armed with SQL Search, will quickly locate any stored procedures with the name provided. Another good use case is hunting down occurrences of troublesome strings in our database code base. Many years ago, we didn t have source control validation to check for issues such as /**To do **/ comments in the code, or use of SELECT *. In a code base of the size we manage, they still crop up from time to time. However, they are becoming fewer and fewer, since a quick SQL Search on *To will hunt them down quickly. The latest version of SQL Search, which also introduces the ability to search with % wildcards and Boolean operators, makes these sorts of string searches even more powerful. 7

Wish list In our organization, we have a Central Management Server (CMS) that segregates the databases by environment (production, non-product). When I open the Production directory, for example, all the servers in that category open up in SSMS Object Explorer, and I can use SQL Search to search for items on each one. A nice additional capability would be if SQL Search could search against multiple selected servers in the Object Explorer, rather than just one at a time. For example, we have a standard DBA database on every server; the ability to perform a quick search on this database, across multiple servers, would be very useful. Summary When managing a lot of database servers, and even more databases, we need tools and automation to help us do our job efficiently. SQL Search is a simple tool that helps us track down specific objects, or fragments of SQL within an object, or all objects that belong to a particular business function, and so on. It is a simple tool, but often it s the simple tools that we turn to most often in our day to day jobs. 8