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
ssis export to excel adding single quote in front of all fields
How to get rid of BABYLON completely?
Need to optimize data cleanup routine in VB
V-lookup
Word 2010 - Changing external linked images into embedded images
Cisco VLAN
differences between windows server 2003 and windows server 2003 r2
How do I write a batch that will open an Explorer window to a particular folder?
mssql: I would like to have this where clause modified to search for all records or if beginDate & endDate specfified then search between dates
Move a VM