Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello There I'm looking for help concerning the *connection string* which I need to connect to the Sql Server. I'm writting a web-based .net application and I use Excel on the server to generate some reports. I write the code in C# and added the excel library so that I can communicate with Excel. WHAT I DO: Programmatically, I defining a QueryTable with the necessary query and connection string. It works quite well. The connection string was: "ODBC;Driver=SQL Server;server=computername; database=dbname; uid=username; pwd=password;" Unfortunately some queries create temporary tables and exactly those queries are not working... I guess it could be that the ODBC doesn't support those temporary tables. Solution: I tried to use a different sql provider, but it's not working. So, could somebody help me with the connection string. Which provider are supported by the Excel QueryTables? Thanks a lot for your help! PS: I know, it would be good not using temporary tables. But the queries are coming from external sources... -- RedSnowRider ------------------------------------------------------------------------ RedSnowRider's Profile: http://www.excelforum.com/member.php...o&userid=32182 View this thread: http://www.excelforum.com/showthread...hreadid=519289 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I import data in excel form SQL server? | Excel Worksheet Functions | |||
Import data from Excel to SQL Server 2005 | Excel Discussion (Misc queries) | |||
import data into SQL Server from Excel | Excel Discussion (Misc queries) | |||
How to import data from SQL Server | Excel Discussion (Misc queries) | |||
Import data from mysql on a web server | Excel Programming |