DeepDive into SQL Server
Labels
Adhoc Queries
DB Concepts
SQL Server
SQL Server 2012
Monday, 26 May 2014
Query to find out list of tables which has a particular column....
Below query is used to find out the list tables which has particular column.
SELECT
OBJECT_NAME
(
OBJECT_ID
)
FROM
SYS
.
COLUMNS
SC
WHERE
NAME
LIKE
'%CUSTID%'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment