ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Connection to external data sources in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/132915-connection-external-data-sources-excel.html)

Thomas Wellington

Connection to external data sources in Excel
 
I created a worksheet in which I am pulling data from SQL 2005 via stored
procedure (with worksheet level connection string and trusted connection).

In the 'Connection Properties' I am specifying the connection string and the
name of the stored procedure.
I can go and click on the data region (table that was retured by the call to
the Sql), then on the 'Data' table -'Connection Properties' (which is
enabled if the Excel has defined connection information).
Everything is working fine and as expected.

However, I have noticed on several occasions that sometimes Excel 2007 is
"dropping" the connection information (and connection string itself)
disabling the 'Connection Properties' under 'Data' tab. So in order to
recreate the data pull I have to start from scratch (Define connection
string, etc).

I am not an Excel wiz, so I could be doing something wrong here.

Any ideas greatly appreciated.



All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com