How to find a string inside a entire database?

前端 未结 9 1332
一整个雨季
一整个雨季 2020-12-13 06:04

I have one specific string, such as \"123abcd\" for example but I don\'t know the name of the table or even the name of the column inside the table on my SQL Server Database

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 06:57

    I think you have to options:

    1. Build a dynamic SQL using sys.tables and sys.columns to perform the search (example here).

    2. Use any program that have this function. An example of this is SQL Workbench (free).

提交回复
热议问题