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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 finding and changing the name in db sqlserver 2008

Author  Topic 

bbrown722
Starting Member

5 Posts

Posted - 2010-10-25 : 13:49:51
Can someone help with this issue.

find all the values of (X) in a database and not of tables names?

BRENDA BROWN

bbrown722
Starting Member

5 Posts

Posted - 2010-10-25 : 14:05:26
i do not know the table names.

BRENDA BROWN
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-10-25 : 14:10:47
Don't understand. Please explain more what you want.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

bbrown722
Starting Member

5 Posts

Posted - 2010-10-25 : 14:28:23
select * from sys.tables
where colname = host;

I am trying to see every where PRDREMDB01 exist.

BRENDA BROWN
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-10-25 : 14:48:33
You want to query every column of every table for a particular value? A particular value in the data within the table?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-10-25 : 15:06:44
http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -