x
login about faq Site discussion (meta-askssc)

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

more ▼

asked Nov 20 '11 at 11:28 PM in Default

jhunu gravatar image

jhunu
90 12 25 29

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

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'
more ▼

answered Nov 20 '11 at 11:45 PM

Usman Butt gravatar image

Usman Butt
13.8k 6 8 14

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x11

asked: Nov 20 '11 at 11:28 PM

Seen: 317 times

Last Updated: Nov 20 '11 at 11:28 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.