Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

Is there a faster to look for a specific table on sql server management studio?
I am looking for a certain table , i know the table name but only issue is that there are a 100 of databases and with at least 100 tables in those databases.

So there a query to do this at all >

Thamk you
Posted
Comments
Andy Lanng 17-Aug-15 5:09am    
What information do you need from the table?
1Future 17-Aug-15 5:12am    
i am trying to pickout 2 columns fields from this table.

1 solution

Try:
SQL
sp_msforeachdb 'select "?" AS db, * from [?].sys.tables'
 
Share this answer
 
Comments
1Future 17-Aug-15 5:27am    
Thank you .. i found my table .. maybe you may also know this .. but is possible to create view from another database? lets say i've got database1 and in this db i want tp create a view referencing a table from database2 .. is this possible??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900