Re: Finding data
From: Hamilton (hamilton_at_polese.com)
Date: 04/02/04
- Next message: anonymous_at_discussions.microsoft.com: "Transaction log backup failure"
- Previous message: Obaid: "Debugger on remote machine"
- In reply to: Mark Allison: "RE: Finding data"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 2 Apr 2004 13:25:11 -0800
Thanks Mark
"Mark Allison" <marka@no.tinned.meat.mvps.org> wrote in message
news:D3376437-D5CE-441C-8A86-3948921C9CB6@microsoft.com...
Hamilton,
You could develop your own stored procedure by iterating through the
COLUNM_NAME of the system INFORMATION_SCHEMA.COLUMNS view. This will require
a cursor. Any matches should also display the table name, owner and column
name. A proc might exist on the web somewhere to do this, there is nothing
native to SQL Server that will do this currently. Be aware that such a
search could take a very, very long time to complete as you will be table
scanning every table in your database.
Try and design your proc so that you are are only doing one table scan per
table, and not one table scan per column - that should keep the already bad
performance to a minimum.
-- Mark Allison, SQL Server MVP http://www.markallison.co.uk
- Next message: anonymous_at_discussions.microsoft.com: "Transaction log backup failure"
- Previous message: Obaid: "Debugger on remote machine"
- In reply to: Mark Allison: "RE: Finding data"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|