Microsoft
Software
Hardware
Network
Question : Column Name in query
I have a table and I need to get the column name as part of the query
so a table like this
column1 column2 column3 column4 column5
0 0 87.4 0 0
0 0 0 0 1848.65
I need to query so I get output like
columnName,value
column3 87.4
column5 1848.65
the column names will change.
Answer : Column Name in query
You can indeed use CreateTableDef() to create tables directly into a specified database, but it's probably easier to execute a SELECT INTO query with an IN claues to copy the imported data from the current database into the other database.
Random Solutions
SQL Server connection throws System.InvalidOperationExc
eption
iphones - do they sync well with outlook contacts?
Undeliverable Message (NDR): 554 5.4.4 SMTPSEND.DNS.NonExistentDo
main; nonexistent in Exchange 2007
Firefox fonts are clear, but many applications fuzzy?
Access - Select Distinct on Multiple Fields
Copying and pasting a transparent GIF
PHP String Help to Determine Output and Layout of a Value
How can I change the formula of a cell based on the string value in a dropdown?
SQL*Loader-128 Unable to begin session; ORA-01017: invalid username/password
unable to find callback library jcb.dll