Sometimes we need to find some objects used in stored procedure or similar other requirement we need to search some text used in Stored procedure. The following lines of code is very useful in for it.
SELECT DISTINCT OBJECT_NAME(id) FROM syscomments WHERE [text] LIKE '%YOURTEXT%'
Replace YOURTEXT with your actual text to be searched.
Search This Blog
Subscribe to:
Post Comments (Atom)
Searching duplicate Record
Very often we have to look for duplicate records in the database, Below is the query which can give you the result. SELECT COL1, COL2 , ...
-
Qs. 1-5. In each of the questions below are given two statements followed by two conclusions numbered I and II. You have to take the given s...
-
Qs.1-6. Find out the missing number. 1. 11 23 48 … 202 1) 100 2)...
-
Here is a readymade procedure for scanning a folder and applying some action on each subfolder or file procedure ScanFolder( src string ); v...
I think that, you are expert in SQL but I am newbie to this field. I want more basic information about SQL. Keep on posting.
ReplyDeleteYour post seems to be really brilliant. I am eagerly waiting for your next update..
ReplyDelete