2PTTechnology

The platform that enables you to build rich, interactive communities
Welcome to 2PTTechnology Sign in | Join | Help
in Search

Find a table column on SQL Server

Last post 04-06-2010, 8:28 AM by pskobel. 0 replies.
Sort Posts: Previous Next
  •  04-06-2010, 8:28 AM 405

    Find a table column on SQL Server

    SELECT name FROM sysobjects WHERE id IN ( SELECT id FROM syscolumns WHERE name = 'THE_COLUMN_NAME' )

    or

    SELECT name FROM sysobjects WHERE id IN ( SELECT id FROM syscolumns WHERE name like '%PART_OF_NAME%' )

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems