Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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
Comment

PREVIOUS NEXT
Code Example
Sql :: job for postgresql.service failed because the control process exited with error code. see "systemctl status postgresql.service" and "journalctl -xe" for details. 
Sql :: sql remove not null constraint 
Sql :: ORA-00903 
Sql :: psql connect 
Sql :: sql select where in list 
Sql :: SQL: merging multiple row data in string 
Sql :: postgres database sizes 
Sql :: sql create index 
Sql :: sql check if date is between 2 dates 
Sql :: contains word in sql 
Sql :: sql missing values 
Sql :: drop multiple databases mysql 
Sql :: set nocount on sql 
Sql :: SQL loop with cursor 
Sql :: get date ISO in psql 
Sql :: postgresql create schema in specific database 
Sql :: insert query return id mysql 
Sql :: sql view where tables have same column name combine results 
Sql :: update column data type postgres 
Sql :: sql date get month 
Sql :: running percentage of total postgres 
Sql :: copy table postgres 
Sql :: command line mysql xampp 
Sql :: oracle create table auto generated primary key 
Sql :: mysql on update current_timestamp 
Sql :: sql get last inserted row 
Sql :: sql server rtrim everything after character 
Sql :: mysql replace remove html tag 
Sql :: database dump mysql command 
Sql :: how to run mysql on terminal mac 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =