August 11, 2010 at 11:14 am
I am looking for a script that i can provide to a user so that he can search for a string the word "alert" in the entire database ( i.e all the tables)
Please let me know if there is a way to do this without creating a stored procedure
thanks
August 11, 2010 at 11:28 am
Full text search will work. But you have to create a full text index first.
August 11, 2010 at 12:21 pm
provide to a user ?!?! every varchar/char/nvarchar/nchar column in the database?
unless this is for a developer to fix some code, as already suggested, you really need to use full text search, and identify the specific columns you want to search for 'alert'; the knee jerk "search everything" will cause bad things to happen. very bad things.
there's a thread on the subject to search every/column/table in the database , but it each example uses a huge amount of resources....on production, it took me over 4 minutes to scan every table for the word 'TEST'; that's not an end user tool.
http://www.sqlservercentral.com/Forums/Topic947537-338-1.aspx
Lowell
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply