Answers for "buscar nombre de columna en todas las tablas sql server"

SQL
0

buscar nombre de columna en todas las tablas sql server

SELECT  sysobjects.name AS table_name, syscolumns.name AS column_name,
           systypes.name AS datatype, syscolumns.LENGTH AS LENGTH
FROM       sysobjects INNER JOIN
               syscolumns ON sysobjects.id = syscolumns.id INNER JOIN
               systypes ON syscolumns.xtype = systypes.xtype
WHERE     (sysobjects.xtype = 'U') 
                and (UPPER(syscolumns.name) like upper('%myFieldName%'))
ORDER BY sysobjects.name, syscolumns.colid
Posted by: Guest on July-13-2020

Code answers related to "buscar nombre de columna en todas las tablas sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language