How do I search an SQL Server database for a string?

后端 未结 15 1732
执念已碎
执念已碎 2020-11-28 18:40

I know it\'s possible, but I don\'t know how.

I need to search an SQL Server database for all mentions of a specific string.

For example: I would like t

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 18:58

    You could;

    1. Script the database to a single file and search the file for tblEmployees using a text editor. In SQL Server Management Studio (SSMS), right click over the database and choose Generate Scripts.
    2. Use SSMS 'View Dependencies' by right clicking over tblEmployees to see which other objects are dependent on it
    3. Use a free third-party tool such as Redgate Software's SQL Search to search all database objects by name and content by keyword.

提交回复
热议问题