SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

search every database on server from a single sp

By Chris Morton, 2008/12/19

Total article views: 864 | Views in the last 30 days: 4

This script has been designed for our databases in our environment, but it can easily be modified to suit your needs. unfortunately you will have to be familiar at a fairly advanced level to make your changes....

briefly put the principals are: go through every database that is not a system one, check if it contains the table you are looking for (we have a number of similar databases based on a template), check if it contains the right columns (exculded in this version), then see if it finds the string you are looking for.

please note this is very specific to our work environment and you will have to make changes. if you need help just contact me and i will see if i can help.

Chris

By Chris Morton, 2008/12/19

Total article views: 864 | Views in the last 30 days: 4
Your response
 
 
Related Articles
FORUM

Database Sync

Database

FORUM

Database suspect

Database

FORUM

Database Synchronization

Database Synchronization

FORUM

regarding database

regarding database

FORUM

Distributed database

Distributed database

Tags
 
Contribute

Free registration required...

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Login (existing users)

Login

Email:   Password:   Remember me: Forgotten your password?

Register (new users)

Register

Email:   Password:
Confirm:

Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

Steve Jones
Editor, SQLServerCentral.com