Search
 
SCRIPT & CODE EXAMPLE
 

SQL

Search In the Database using Text

declare @SearchText nvarchar(max)='searchText'
SELECT  o.[name] as object_name
                                                            , sm.[definition]
                                                    FROM sys.sql_modules AS sm
                                                    JOIN sys.objects AS o
                                                        ON sm.object_id = o.object_id
                                                    JOIN sys.schemas AS ss
                                                        ON o.schema_id = ss.schema_id
where sm.[definition] like '%'+@SearchText+'%'
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql range of dates overlap 
Sql :: sqlite löschen einer tabelle 
Sql :: remove decimal in sql server 
Sql :: sql query order 
Sql :: psql concat string and int 
Sql :: How to take sum of column with same id and different table in SQL? 
Sql :: uuid sqlalcomany 
Sql :: delete account in flask and sqlalchemy 
Sql :: one to one and one to many relationship 
Sql :: how to login to mysql as normal user in ubuntu 
Sql :: oracle datafile max size 32gb 
Sql :: update query in linked server 
Sql :: docker use mysql 
Sql :: how to completely uninstall sql server 
Sql :: mysql group rows with same value 
Sql :: drop tables from local database postgres pgadmin 
Sql :: drop procedure postgres 
Sql :: sql quary intervewi question 
Sql :: sql server epoch to datetime 
Sql :: SQL Switch Databases 
Sql :: delete all from mysql table 
Sql :: oracle sql count occurrences of value in column 
Sql :: Concatenate columns in table 
Sql :: how to print some string in mysql 
Sql :: mac docker mysql 
Sql :: can i use alias in where clause 
Sql :: sql server port number 
Sql :: select * from 
Sql :: sql file in postgres with pgadmin 
Sql :: sql logo 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =