Free Essay

Senior Sql Server Dba

In:

Submitted By kumarmsql
Words 650
Pages 3
ColumnSearch – USER GUIDE
Version 1

Copyright Notice

The information in this manual is furnished for your use only and is subject to change without notice. Copying, modifying or distributing this document in violation of the license agreement is expressly prohibited.

About This Manual

Purpose

This manual is intended to be a guide and a reference manual to search a column on all the databases from a Server and find what databases and objects a column belongs to. It also shows the Column size.

Who Should Read This Manual

Anyone who is working on MS SQL Server 2000/2005 Databases can read this document like any Develoers, DBA’s, Testers, etc.

How Is It Organized

1. User needs to Compile/Run the script to create SP named ‘ColumnSearch’ in Master database of a Server. 2. After successful Compilation, user should execute the SP in Master database of a Server. 3. Users will get the result set in the form of Database name, ObjectName, ColumnName, and ColumnSize.

List of Abbreviations

|S No |Abbreviation |Expansion |
| |TCS |Tata Consultancy Services |
| |SP |Stored Procedures |

Contents

1. Introduction 7 1.1 Overview 7 1.2 Features 7 1.3 Access Privileges 7
2. Installation Procedure 8 2.1 Task 1 8 2.2 Task 2 9 2.3 Result Set 9
Appendix ..10

Revision History

Document Detail:

|Name |Version No. |Description |
|ColumnSearch – User Guide |1.0 |Describes how to use ColumnSearch SP |

|Action taken |Preceding |New Page No |Revision Description |
|(Add/Del/Chg.) |Page No | | |
| | | | |

This document and any revised pages are subject to document control. Please keep them up-to-date using the release notice from the distributor of the document.

Approved by: Date:

Authorized by: Date:

1. Introduction

2 Overview

ColumnSearch is an SP (Stored Procedure), which we can use to search a column on all the databases from a Server and Find what databases and objects a column belongs to; it also shows the size of Column. This SP should be executed from master database only.

3 Features

1. This SP will be helpful to Search any Columns from all the Databases & Database Objects. 2. Helpful to compare the Column Size of Columns from varies Database Objects.

4 Access Privileges

3.1 To Run Script to Create SP: User should be belongs to the group of db_owner or db_ddladmin fixed database roles or the sysadmin fixed server role.

3.2 To Execute SP: User requires Permissions of Exec
4. Installation Procedure

4.1 Task 1:

Run the following Script in Master Database of a Server to Create the ColumnSearch Stored Procedure with @columnnametosearch as an input parameter.

--For MS SQL Server 2000

Use master Go

Create Procedure ColumnSearch @columnnametosearch varchar(128)

As

Begin

Set quoted_identifier off Declare @query varchar(1000) Set @columnnametosearch =@columnnametosearch Set @query='set quoted_identifier off begin use [?] end begin Select db_name() as DatabaseName, object_name(id) as ObjectName, name as ColumnName, length as ColumnSize from syscolumns Where name ="'+@columnnametosearch+'" end'

Exec sp_MSforeachdb @query

End

---- For MS SQL Server 2005

Use master Go

Create Procedure ColumnSearch @columnnametosearch varchar(128)

As Begin

Set quoted_identifier off Declare @query varchar(1000) Set @columnnametosearch =@columnnametosearch Set @query='set quoted_identifier off begin use [?] end begin Select db_name() as DatabaseName, object_name(object_id) as ObjectName, name as ColumnName, length as ColumnSize from sys.columns Where name ="'+@columnnametosearch+'" end'

Exec sp_MSforeachdb @query

End

2. Task 2:

Execute the Stored Procedure ColumnSearch in Master Database of a Server and pass the Input parameter as a Column Name, which we need to search from the Databases & Database Objects.

Example:

Use Master

Execute ColumnSearch ‘Address’

-- Where ‘Address’ is a Column Name that we need to search.

3. Result Set:

We will get the result set in the form of

DatabaseName ObjectName ColumnName ColumnSize

Appendix

Example: Search Databases & Database objects for column ‘Address’ with Size of Column.

1. Create SP ColumnSearch [pic]

2. Execute SP ColumnSearch & see the Result Set for Column ‘Address’

[pic]

Similar Documents

Premium Essay

Project Charter

...Project Vision, Objectives and Scope The organization consists of a team of experienced accounting professionals providing clear and relevant advice in a timely and professional manner. Its approach is to deliver an integrated solution by tapping into various years of experience and expertise to deal with everyday challenges. Vision The vision of the project is to increase productivity, minimize errors and improve clients’ satisfaction by implementing an Enterprise Solutions that will help simplify the accounting processes and still have the ability to generate the information needed to make informed business decisions. The project is intended to support the planning, oversight, and implementation of QuickBooks Enterprise Solutions and to establish a structure to maintain the accounting functions and payroll with system/data interfaces, tables, and codes. The project will provide planning, analysis, programming, data updates, testing, documentation, software quality assurance and implementation support to ensure that this software provides continued relevance to the accounting department of the organization (Horne, 2011). Objectives The objectives of the project include the following 1. Support and improve the current operations in the organization. 2. Improve efficiency of delivery systems, 3. Reduce product costs. 4. Improve the company’s market position and future prospects. Scope Statements The Project...

Words: 3222 - Pages: 13

Free Essay

Senior Database Administrator

...to graduate 2014). Certifications/Exams  Pass University achievement exam with rank 49 out of 906 students.  Oracle DB 10g: oracle certified professional.  Oracle DB 11g: oracle certified associate.  Oracle E-Business Suite R12 Applications Database administrator certified professional.  Oracle DB 10g: Managing oracle on Linux certified expert.  Oracle E-Business Suite R12 system administrator certified expert.  Pass Oracle enterprise linux fundmental exam as a prerequisite for oracle enterprise linux system administrator certified associate.  Pass ITILV3 Foundation exam.  Oracle DB 10g: Administering Real application clusters certified expert.  Oracle DB: SQL Certified Expert. Professional Experience From To Title& Duties May 2011 Present @Umniah Senior database administrator Duties: Administration on Oracle E-business suite release R11.5.10.1 - Support/Maintain/Troubleshoot Umniah...

Words: 1191 - Pages: 5

Free Essay

Oracle for Dummies

...™ Everything Easier! Making cle 11g Ora ® Learn to: • Set up and manage an Oracle database • Maintain and protect your data • Understand Oracle database architecture • Troubleshoot your database and keep it running smoothly Chris Zeis Chris Ruel Michael Wessler www.it-ebooks.info www.it-ebooks.info Oracle 11g ® FOR DUMmIES ‰ www.it-ebooks.info www.it-ebooks.info Oracle 11g ® FOR DUMmIES by Chris Zeis, Chris Ruel, and Michael Wessler ‰ www.it-ebooks.info Oracle® 11g For Dummies® Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2009 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online...

Words: 106399 - Pages: 426

Premium Essay

Database Management System

...DATABASE S YSTEMS DESIGN, IMPLEMENTATION, AND MANAGEMENT CARLOS CORONEL • STEVEN MORRIS • PETER ROB Australia • Brazil • Japan • Korea • Mexico • Singapore • Spain • United Kingdom • United States Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Database Systems: Design, Implementation, and Management, Ninth Edition Carlos Coronel, Steven Morris, and Peter Rob Vice President of Editorial, Business: Jack W. Calhoun Publisher: Joe Sabatino Senior Acquisitions Editor: Charles McCormick, Jr. Senior Product Manager: Kate Mason Development Editor: Deb Kaufmann Editorial Assistant: Nora Heink Senior Marketing Communications Manager: Libby Shipp Marketing Coordinator: Suellen Ruttkay Content Product Manager: Matthew Hutchinson Senior Art Director: Stacy Jenkins Shirley Cover Designer: Itzhack Shelomi Cover Image: iStock Images Media Editor: Chris Valentine Manufacturing Coordinator: Julio Esperas Copyeditor: Andrea Schein Proofreader: Foxxe Editorial Indexer: Elizabeth Cunningham Composition: GEX Publishing Services © 2011 Cengage Learning ALL RIGHTS RESERVED. No part of this work covered by the copyright herein may be reproduced, transmitted, stored or used in any form or by any means graphic, electronic, or mechanical, including but not limited to photocopying, recording, scanning, digitizing, taping, Web distribution, information networks, or information storage and retrieval systems, except as permitted...

Words: 189848 - Pages: 760

Premium Essay

Flix2You

...FLIX2YOU PROPOSAL Illuminated Communications IST210 SEC002 Table of Contents Executive Summary 3 Scope of Work 4 Project Management 5 Project Resources and Budget 8 User Analysis 10 Organization of Data 14 Database Administration 17 Database Backup and Recovery 19 Legal Issues 22 Works Cited 25 Appendix A – DDL Script 26 Appendix B – Sample Reporting 37 Executive Summary Illuminated Communications offers this solution to meet the growing demands of Flix2You. We understand the limitations of the existing database design and have proposed a new design that will provide Flix2You a more robust database environment intended to capture more customer data.  This will address the primary concerns of Flix2You and allow for the understanding of its customer’s habits that it seeks to gain. Included in this document you will find our scope of work, as it has been determined based on the requirements that have been provided. With that we developed a project plan highlight the major milestones from project start to final sign off. Please note that Illuminated Communications will provide comprehensive testing, training, and support past go live to ensure our solution meet the demands of Flix2You. Understanding Flix2You users is important to our design process. We have included an in-depth user analysis to help us build our system to support the needs of all Flix2You user from upper management personnel to database administrators. Illuminated Communications...

Words: 5807 - Pages: 24

Premium Essay

A&D High Tech

...part of the strategic initiatives set forth by its CEO and founder, Ted Walter, A&D was to be second to none in utilizing technology to increase operational efficiency and reduce costs. The supply chain project therefore received notable attention in the boardroom and with its competitors. Time and again, Johnson was asked to tackle difficult assignments that were critical to the company’s growth and profits. He had already been mentioned as the successor to the vice president of e-business, Chuck Gagler, pending his retirement. (See Exhibit 1 for the A&D High Tech organizational chart.) In early May 2003 Johnson received an urgent message from the company’s CIO, Matt Webb. Webb asked Johnson to join him for a meeting with A&D’s senior managers to discuss taking over the company’s online store project. Johnson realized that up to that point the company’s top brass had virtually ignored the Internet and its sales potential. But that situation was about to change. As Webb explained, A&D’s vice president of sales, Jeff White, had advised CEO Ted Walter that A&D was losing its competitive advantage by not selling online. As a result, Walter had made the online store project the company’s highest priority. Walter wanted to know whether the project could be completed in time...

Words: 5988 - Pages: 24

Premium Essay

A&D High Tech

...time. As part of the strategic initiatives set forth by its CEO and founder, Ted Walter, A&D was to be second to none in utilizing technology to increase operational efficiency and reduce costs. The supply chain project therefore received notable attention in the boardroom and with its competitors. Time and again, Johnson was asked to tackle difficult assignments that were critical to the company’s growth and profits. He had already been mentioned as the successor to the vice president of e-business, Chuck Gagler, pending his retirement. (See Exhibit 1 for the A&D High Tech organizational chart.) In early May 2002 Johnson received an urgent message from the company’s CIO, Matt Webb. Webb asked Johnson to join him for a meeting with A&D’s senior managers to discuss taking over the company’s online store project. Johnson realized that up to that point the company’s top brass had virtually ignored the Internet and its sales potential. But that situation was about to change. As Webb explained, A&D’s vice president of sales, Jeff White, had advised CEO Ted Walter that A&D was losing its competitive advantage by not selling online. As a result, Walter had made the online store project the company’s highest priority. Walter wanted to know whether the project could be completed in time for the holiday...

Words: 6010 - Pages: 25

Premium Essay

Teach Yourself Sql

...Teach Yourself SQL in 21 Days, Second Edition Table of Contents: Introduction Week 1 at a Glance Day 1 Introduction to SQL Day 2 Introduction to the Query: The SELECT Statement Day 3 Expressions, Conditions, and Operators Day 4 Functions: Molding the Data You Retrieve Day 5 Clauses in SQL Day 6 Joining Tables Day 7 Subqueries: The Embedded SELECT Statement Week 1 in Review Week 2 at a Glance Day 8 Manipulating Data Day 9 Creating and Maintaining Tables Day 10 Creating Views and Indexes Day 11 Controlling Transactions Day 12 Database Security Day 13 Advanced SQL Topics Day 14 Dynamic Uses of SQL Week 2 in Review Week 3 at a Glance Day 15 Streamlining SQL Statements for Improved Performance Day 16 Using Views to Retrieve Useful Information from the Data Dictionary Day 17 Using SQL to Generate SQL Statements Day 18 PL/SQL: An Introduction Day 19 Transact-SQL: An Introduction Day 20 SQL*Plus Day 21 Common SQL Mistakes/Errors and Resolutions Week 3 in Review Appendixes A Glossary of Common SQL Statements B Source Code Listings for the C++ Program Used on Day 14 C Source Code Listings for the Delphi Program Used on Day 14 D Resources E ASCII Table F Answers to Quizzes and Excercises © Copyright, Macmillan Computer Publishing. All rights reserved. Teach Yourself SQL in 21 Days, Second Edition Acknowledgments A special thanks to the following individuals: foremost to my loving wife, Tina, for her tolerance and endless support, to Dan Wilson for his...

Words: 128515 - Pages: 515

Premium Essay

A&D Hightech Case

...time. As part of the strategic initiatives set forth by its CEO and founder, Ted Walter, A&D was to be second to none in utilizing technology to increase operational efficiency and reduce costs. The supply chain project therefore received notable attention in the boardroom and with its competitors. Time and again, Johnson was asked to tackle difficult assignments that were critical to the company’s growth and profits. He had already been mentioned as the successor to the vice president of e-business, Chuck Gagler, pending his retirement. (See Exhibit 1 for the A&D High Tech organizational chart.) In early May 2003 Johnson received an urgent message from the company’s CIO, Matt Webb. Webb asked Johnson to join him for a meeting with A&D’s senior managers to discuss taking over the company’s online store project. Johnson realized that up to that point the company’s top brass had virtually ignored the Internet and its sales potential. But that situation was about to change. As Webb explained, A&D’s vice president of sales, Jeff White, had advised CEO Ted Walter that A&D was losing its competitive advantage by not selling online. As a result, Walter had made the online store project the company’s highest priority. Walter wanted to know whether the project could be completed in time for the holiday...

Words: 6646 - Pages: 27

Premium Essay

Imformation Systems Teach Yourself Sql

...Teach Yourself SQL in 21 Days, Second Edition Table of Contents: Introduction Week 1 at a Glance Day 1 Introduction to SQL Day 2 Introduction to the Query: The SELECT Statement Day 3 Expressions, Conditions, and Operators Day 4 Functions: Molding the Data You Retrieve Day 5 Clauses in SQL Day 6 Joining Tables Day 7 Subqueries: The Embedded SELECT Statement Week 1 in Review Week 2 at a Glance Day 8 Manipulating Data Day 9 Creating and Maintaining Tables Day 10 Creating Views and Indexes Day 11 Controlling Transactions Day 12 Database Security Day 13 Advanced SQL Topics Day 14 Dynamic Uses of SQL Week 2 in Review Week 3 at a Glance Day 15 Streamlining SQL Statements for Improved Performance Day 16 Using Views to Retrieve Useful Information from the Data Dictionary Day 17 Using SQL to Generate SQL Statements Day 18 PL/SQL: An Introduction Day 19 Transact-SQL: An Introduction Day 20 SQL*Plus Day 21 Common SQL Mistakes/Errors and Resolutions Week 3 in Review Appendixes A Glossary of Common SQL Statements B Source Code Listings for the C++ Program Used on Day 14 C Source Code Listings for the Delphi Program Used on Day 14 D Resources E ASCII Table F Answers to Quizzes and Excercises / Copyright, Macmillan Computer Publishing. All rights reserved. Join the National Guard Car Computer Serve in your own backyard Get Free Info Here. No Obligation www.military.com Complete Diagnostic Software Tool DTC Codes, Sensor Readings...

Words: 129252 - Pages: 518

Free Essay

Rererer

...Oracle DBA Interview Questions and Answers Compiled By Mohamed Fowjil Abdul Hameed Contents Oracle DBA Interviews - Overview 2 Oracle DBA Interview Questions and Answers – ARCHITECTURE 4 SENIOR ORACLE DBA INTERVIEW QUESTIONS 31 MID LEVEL ORACLE DBA INTERVIEW QUESTIONS 57 Oracle 11g Database New Features Interview Questions and Answers 65 Oracle RAC Interview Questions and Answers 70 Oracle RAC Interview Questions (10g) Questions and Answers 137 Oracle Data Guard Interview Questions and Answers 168 Oracle ASM Interview Questions and Answers 205 Oracle Patching,Cloning and Upgrade Interview Questions and Answers 219 Oracle Backup and Recovery Interview Questions and Answers 228 Oracle RMAN Interview Questions and Answers 232 Oracle Performance Tuning Interview Questions and Answers 237 Oracle Performance Tuning Interview Questions and Answers 245 Oracle Export/Import (exp/imp)- Data Pump (expdp/imp) Interview Questions and Answers 249 UNIX Interview Questions and Answers for Oracle DBAs 254 Oracle DBA Interviews - Overview Dear Readers, Hereby, I am sharing my experience of interviews asd technical discussion with various MNC Dba’s, Project managers and Project delivery managers and Technical architects, as part of my interview preparation, I used to refer my own work note as well as web sources below details are a consolidate form of my interview preparation and Oracle dba interviews questions and answers General Guide line:...

Words: 97621 - Pages: 391

Premium Essay

Kkswmddkmdkemwekdemkedmkdemkmdkmdkew

...MODERN DATABASE MANAGEMENT / JfFFREY A. HOFFER . Warehousing Success 426 Data Warehouse Architectures 428 Generic Two-Level Architecture 428 Independent Data Mart Data Warehousing Environment 426 429 C O NTENTS Dependent Data Mart and Operational Data Store Architecture: A Three-Level Approach Logical Data Mart and Real-Time Data Warehouse Architecture 432 Three-Layer Data Architecture 435 Role of the Enterprise Data Model 435 Role of Metadata 436 Some Characteristics of Data Warehouse Data Status Versus Event Data 437 Transient Versus Periodic Data 438 An Example of Transient and Periodic Data 438 Transient Data 438 Periodic Data 439 Other Data VVarehouse Changes 440 The Reconciled Data Layer 441 Characteristics of Data after ETL 441 The ETL Process 442 Extract 442 Cleanse 444 Load and Index 446 Data Transformation 447 Data Transformation Functions 448 Record-Level Functions 448 Field-Level Functions 449 More Complex Transformations 451 Tools to Support Data Reconciliation 451 Data Quality Tools 451 Data Conversion Tools 452 Data Cleansing Tools 452 Selecting Tools 452 The Derived Data Layer 452 Characteristics of Derived Data 452 The Star Schema 453 Fact Tables and Dimension Tables 453 Example Star Schema 454 Surrogate Key 455 Grain of Fact Table 456 Duration of the Database 456 Size of the Fact Table 457 Modeling Date and Time 458 Variations of the Star Schema 458 Multiple Fact Tables 458 Factless Fact Tables...

Words: 80097 - Pages: 321

Premium Essay

Computer Tricks

...EC-Council Press | The Experts: EC-Council EC-Council’s mission is to address the need for well educated and certified information security and e-business practitioners. EC-Council is a global, member based organization comprised of hundreds of industry and subject matter experts all working together to set the standards and raise the bar in Information Security certification and education. EC-Council certifications are viewed as the essential certifications needed where standard configuration and security policy courses fall short. Providing a true, hands-on, tactical approach to security, individuals armed with the knowledge disseminated by EC-Council programs are securing networks around the world and beating the hackers at their own game. The Solution: EC-Council Press The EC-Council | Press marks an innovation in academic text books and courses of study in information security, computer forensics, disaster recovery, and end-user security. By repurposing the essential content of EC-Council’s world class professional certification programs to fit academic programs, the EC-Council | Press was formed. With 8 Full Series, comprised of 27 different books, the EC-Council | Press is set to revolutionize global information security programs and ultimately create a new breed of practitioners capable of combating this growing epidemic of cybercrime and the rising threat of cyber war. This Certification: C|EH – Certified Ethical Hacker Certified Ethical Hacker is a certification...

Words: 61838 - Pages: 248

Premium Essay

Study Guide

...® OCA Oracle Database 11g: SQL Fundamentals I Exam Guide (Exam 1Z0-051) ABOUT THE AUTHORS John Watson (Oxford, UK) works for BPLC Management Consultants, teaching and consulting throughout Europe and Africa. He was with Oracle University for several years in South Africa, and before that worked for a number of companies, government departments, and NGOs in England and Europe. He is OCP qualified in both database and Application Server administration. John is the author of several books and numerous articles on technology and has 25 years of experience in IT. Roopesh Ramklass (South Africa), OCP, is an independent Oracle specialist with over 10 years of experience in a wide variety of IT environments. These include software design and development, systems analysis, courseware development, and lecturing. He has worked for Oracle Support and taught at Oracle University in South Africa for several years. Roopesh is experienced in managing and executing IT development projects, including infrastructure systems provisioning, software development, and systems integration. About the Technical Editor Bruce Swart (South Africa) works for 2Cana Solutions and has over 14 years of experience in IT. Whilst maintaining a keen interest for teaching others, he has performed several roles including developer, analyst, team leader, administrator, project manager, consultant, and lecturer. He is OCP qualified in both database and developer roles. He has taught at Oracle University...

Words: 150089 - Pages: 601

Premium Essay

Databasse Management

...Fundamentals of Database Systems Preface....................................................................................................................................................12 Contents of This Edition.....................................................................................................................13 Guidelines for Using This Book.........................................................................................................14 Acknowledgments ..............................................................................................................................15 Contents of This Edition.........................................................................................................................17 Guidelines for Using This Book.............................................................................................................19 Acknowledgments ..................................................................................................................................21 About the Authors ..................................................................................................................................22 Part 1: Basic Concepts............................................................................................................................23 Chapter 1: Databases and Database Users..........................................................................................23 ...

Words: 229471 - Pages: 918