Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Saber que tablas de una base de datos sqlserver tienen un atributo llamado "nombredelatributo".
- SELECT t.name AS NombreTabla,
- c.name AS NombreColumna
- FROM sys.TABLES t
- INNER JOIN sys.COLUMNS c ON t.object_id = c.object_id
- WHERE LOWER(c.name) = ''; --Nombre del atributo va en esas comillas
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement