Can you use a cell value as a table name parameter for a SQL query?

Discussion of issues, suggestions and bugs of Devart Excel Add-ins, our product line for connecting Excel to external data from cloud applications and databases
Post Reply
lobster
Posts: 1
Joined: Thu 20 Oct 2016 22:50

Can you use a cell value as a table name parameter for a SQL query?

Post by lobster » Thu 20 Oct 2016 22:54

I'm using MS Excel to get data from a PostgresSQL database through ODBC.

I wonder if it is possible to use a cell value to reference a table name for my queries. For example:

Code: Select all

select name from users where id=1
I'd like to get the table name "users" value from a cell in the spreadsheet.

Is this possible / easy to set up?

Thanks!

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Can you use a cell value as a table name parameter for a SQL query?

Post by Pinturiccio » Fri 21 Oct 2016 14:21

At the moment there is no such possibility. We will investigate the possibility to implement such feature, but there is no timeframe.

JB.BOUCHER
Posts: 2
Joined: Tue 04 Jul 2017 16:23

Re: Can you use a cell value as a table name parameter for a SQL query?

Post by JB.BOUCHER » Tue 04 Jul 2017 16:44

Hi,

Any update on this feature?
It would be extremly useful.

JB

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Can you use a cell value as a table name parameter for a SQL query?

Post by Pinturiccio » Wed 05 Jul 2017 12:04

Unfortunately, the situation didn’t change. The described feature is not supported yet, and we can't tell any timeframe when this feature will be supported.

Post Reply