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
multiple physical sites with SBS 2008
vbs script to convert csv to xlsx whit colum setup
Transpose data in MS Access or Excel
Loop through XML file using VB.Net
Why does END TASK on a remoteapp session cause all remoteapp sessions to all servers to shut down?
automatically get file from ftp server using .bat and put onto my computer
iPhone app: TabBarController and a first View
OWA 2003
MySQL 5 DROP error -> foreign key constraint
Failed to create back up copy of XML file error while loading and unloading Filezilla