Search for one value in any column of any table inside a database

前端 未结 7 1382
甜味超标
甜味超标 2020-11-29 17:15

Is there a way to search for one value (in my case it is a UID of the type char(64)) inside any column of any table inside one MS SQL Server database?

I

相关标签:
7条回答
  • 2020-11-29 18:04

    There is a nice script available on http://www.reddyss.com/SQLDownloads.aspx

    To be able to use it on any database you can create it like in: http://nickstips.wordpress.com/2010/10/18/sql-making-a-stored-procedure-available-to-all-databases/

    Not sure if there is other way.

    To use it then use something like this:

    use name_of_database
    
    EXEC spUtil_SearchText 'value_searched', 0, 0
    
    0 讨论(0)
提交回复
热议问题