September 12, 2010 at 6:28 am
Hi
How can I search a specific word in all the DB?
I have this DB with about 200 tables. Half of it has a "comments" column, but not all column has the same name. Would that help if I change the name of those "comments" column to the same name?
September 12, 2010 at 7:50 am
Try the script at:
http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
September 13, 2010 at 7:30 pm
Well, this is more complicated than I was expected, but it is the solution!
Thank you very much!
September 13, 2010 at 7:35 pm
You're welcome and glad to help.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
September 15, 2010 at 11:16 pm
Dear Friends,
This is freeware and very easy to use ....
Please try this ...
Varinder Sandhu,
http://www.varindersandhu.in/
September 15, 2010 at 11:30 pm
Despite being from red-gate, I think I would prefer the tsql solution. Nothing to install and it works free of charge.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
September 15, 2010 at 11:53 pm
Dear Friends,
i agree with you to use tsql solution. there is no problem to use ...
FYI : solution that i provided above is also free and it works free of charge. it is very easy to user because of GUI and can search any object across SQL Server ( if you want) you can search with in db is also
Thanks!!!
Varinder Sandhu,
http://www.varindersandhu.in/
September 16, 2010 at 4:30 am
From what I have seen, the reference is "SQL prompt v4.0" and it is free on trial basic e.g. 14 days.
Seems like a nice software, but I think it would be more for the users than for the admin/developer.
So, I'll go for the Tsql solution. But thank you anyway for the information because you don't know every thing from my situation and be sure that the more I know about SQL server and his tools, the more I would be efficient!
Thanks!
September 16, 2010 at 5:55 am
HI
agree !!!
don't use Ready made made Ur ready.
Ali
MCTS SQL Server2k8
September 21, 2010 at 9:35 am
if this is not fast enough your other option is to create a full text search catalog, add the needed tables and col....then do a search on contains....this will more then likely will return your results much faster....as this is more of a google type search
September 21, 2010 at 10:11 am
456789psw (9/21/2010)
if this is not fast enough your other option is to create a full text search catalog, add the needed tables and col....then do a search on contains....this will more then likely will return your results much faster....as this is more of a google type search
This only works if you know which columns to add.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
September 22, 2010 at 9:17 am
The SQL Search tool is in fact a really cool and free tool from redgate. It does not however accomplish what this person is trying to do. The SQL Search will find all references to a search string within the database schema, it will NOT however look at data which is what the original poster was trying to accomplish. 😛
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
September 22, 2010 at 11:33 am
SeanLange (9/22/2010)
The SQL Search tool is in fact a really cool and free tool from redgate. It does not however accomplish what this person is trying to do. The SQL Search will find all references to a search string within the database schema, it will NOT however look at data which is what the original poster was trying to accomplish. 😛
That is good info to know
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply