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
Microsoft Dynamics CRM integration with Asterisk.
Delphi 2009 BDE Connection Help
Hyper-V R2 virtual machine storage on ISCSI SAN affecting live migration
Generic Windows 7 TWAIN driver needed for Cannon multifunction printer/fax/scanner
results based on multiple rows in a join
Can't connect to Internet via Internet Explorer with domain admin login
What's the best way to import data from excel into sql, and make sure field types are set ??
A substitute for Terminal Server running under 2003. Any 3rd party tool, having basic features of TS?
sp_change_users_login and user permissions
can not display online video