Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

CONTAINS predicate and Quoted text.

$
0
0

Hi,

I am using CONTAINS predicate to find out SQL - Keywords in sql query.

e.g. sql query - drop table t1

in above sql query it find out 'drop' keyword.

my requirement is that - CONTAINS should ignore the Keywords which are in quoted text like,

e.g. 

Update B1Details
Set Category = 'Transit drop 500'
Where ID = 4

In above query CONTAINS should ignore the drop as it is only just a quoted text.

Please let me know if there is any workaround for this. 

Thanks In Advance

 

 

 

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>