database - Select data from table with column name and description SQL Server -
I have all the columns named in the old column, others do not understand the names, but table details include column description, table How can you choose all the data from, and combine with the column description?
Updated below: Name and column description I found: Then I have another query: returned it to me: What do I need: If I only make 2-3 columns, I can manually rename them, but with many records, I want to make it more readable for users. I need to prepare a report about this. 'COLUMN_TEXT AS Description +', 'FROM' can get output from it and then enter it in the following: [DB2-LINKED- Select from SERVER] (insert output from above). [BD2] .ITMHED
SELECT COLUMN_NAME AS Name, COLUMN_TEXT AS [DB2- Details from LINKED-SERVER] [BD2] .QSYS2.SYSCOLUMNS where TABLE_NAME = 'ITMHED'
Name of the ITMNO item number ITMNM item name .... 800+ rows more
SELECT * from [DB2-LINKED-SERVER ]. [BD2] .ITMHED
ITemano ITMNM ... 800+ more columns AB-001 Mountain Bike ....
item number name ... 800+ more columns AB-001 mountain bike ..... < / Pre>
SELECT COLUMN_NAME AS name '' [DB2-LINKED-SERVER]. [BD2] .QSYS2.SYSCOLUMNS where TABLE_NAME = 'ITMHED'
Comments
Post a Comment