Hi there,
I am using SQL query to get data from our database to excel with something like this:
It is pretty simple query and I want to use it from multiple sources (Companies)
Here is connection string:
I want to change red value in excel so i do not need to manualy enter value every time I want to change source. Is it possible?
Thank you
Tomas
CZECH REPUBLIC
I am using SQL query to get data from our database to excel with something like this:
Code:
select distinct kniha.ucet, ks, right(obd_rr,2) + obd_mm as 'období', NAZEV
from kniha
inner join rozvrh on rozvrh.ucet = kniha.ucet
where obd_mh = '99' and rozvrh.obd_rh = '2017H'
It is pretty simple query and I want to use it from multiple sources (Companies)
Here is connection string:
Code:
Provider=SQLOLEDB.1;
Password=****;
Persist Security Info=True;
User ID=******;
[COLOR=#ff0000]Initial Catalog=COMPANY1;[/COLOR]
Data Source=192.168.******;
Use Procedure for Prepare=1;
Auto Translate=True;
Packet Size=4096;
Workstation ID=*******;
Use Encryption for Data=False;
Tag with column collation when possible=False
I want to change red value in excel so i do not need to manualy enter value every time I want to change source. Is it possible?
Thank you
Tomas
CZECH REPUBLIC