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
Function to Return Only Numbers in a String
Stored Procedure And Database Snapshot
Search engine optimization for multiple business locations
how select and inner join when count(*) > 1
CSS IE7 quirky behavior - One word per line
Better way to print name tags from Access, anyone?
VMWare Server 2.0.2 vmxnet Performance Very Poor For Windows XP Guest
Using jquery to hide dynamically added divs
WIndows Server 2003
TS profiles v2 for Windows Server 2008 are empty