Connection Strings - the APP element

star1984

New Member
Joined
May 12, 2011
Messages
19
hi,
Just wondering, if anyone can tell me the significance of the APP element in a connection string.
I have a pivottable in an old Excel workbook that I've inherited.
I have a central connection file that I usually get all my Excel files to use when determining a connection - this is normally used for query tables - this has always worked fine.
Now I am updating the pivot file's connection string using this central file.
for some reason its not working with this particular workbook - I think it is to do with the difference between query tables and pivot tables (the APP element).
The old connection string reads as follows
"ODBC;DRIVER=SQL Server;SERVER=server1l;UID=12000;PWD=00012;APP=Microsoft Office 2003;DATABASE=MSSPALDING"

The one I plan to update it with is as follows (generated by my central file)
"ODBC;DRIVER=SQL Server;UID=username;PWD=S7pUDruC;APP=Microsoft® Query;SERVER=server1;DATABASE=MSSPALDING"
But this doesn't work.
However when I changed my central file as a test with the APP element changed it worked
DRIVER=SQL Server;SERVER=server1;UID=username;PWD=S7pUDruC;APP=Microsoft Office 2003;DATABASE=MSSPALDING


I've only ever used APP=Microsoft® Query before and am very new to VBA so have not come across this.


 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,602
Messages
6,179,841
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top