question

jhunu avatar image
jhunu asked

I want to know the column called as BSEID exist in which all table and in which schema . please help us

I want to know the column called as BSEID exist in which all table and in which schema . please help us
sql-server-2012
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Usman Butt avatar image
Usman Butt answered
Hope this will help SELECT c.[name] AS ColumnName, SCHEMA_NAME([schema_id]) AS SchemaName, OBJECT_NAME([o].[object_id]) AS TableName FROM sys.[columns] AS C INNER JOIN sys.[objects] AS O ON [C].[object_id] = [O].[object_id] WHERE ([type] = 'U' --OR [type] = 'S' --UNCOMMENT IF WANTED TO SEE SYSTEM TABLES AS WELL ) AND c.[name] = 'BSEID'
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.