Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
CLages
Posting Yak Master
116 Posts |
Posted - 2004-09-02 : 18:53:31
|
| Hi , how can i do a select in all tablesthe problems is, i would like to search a name in a Database that hasaround 900 tables.then i am looking for a way to search in all tables for a specificname.Is it possible?tksany hlp will be apreciatedCarlos Lages |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-09-02 : 19:10:55
|
| SELECT 'SELECT * FROM ' + nameFROM sysobjectsWHERE type = 'U'Then copy the output to a new window and run it. Add a WHERE clause if you need to.Tara |
 |
|
|
rockmoose
SQL Natt Alfen
3279 Posts |
Posted - 2004-09-03 : 17:20:44
|
| Search the data in all the tables for <name>Or search the database catalog for all tables/columns/sprocs with <name> ?rockmoose/* Chaos is the nature of things...Order is a lesser state of chaos */ |
 |
|
|
|
|
|