Skip to content

Instantly share code, notes, and snippets.

@tecnocrata
Last active December 16, 2015 01:59
Show Gist options
  • Select an option

  • Save tecnocrata/5358844 to your computer and use it in GitHub Desktop.

Select an option

Save tecnocrata/5358844 to your computer and use it in GitHub Desktop.
Busca objetos dentro los nombres de columnas en T-SQL
select
o.name,c.name
from sys.columns c
inner join sys.objects o on c.object_id=o.object_id
where c.name Like '%bus_no%'
order by o.name,c.column_id
-- for query tables use sys.tables
-- for query stored procedures use sys.procedures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment