Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Import from Sql Server


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I import data in excel form SQL server? Mitch Excel Worksheet Functions 7 April 15th 10 03:49 PM
Import data from Excel to SQL Server 2005 [email protected] Excel Discussion (Misc queries) 0 January 22nd 09 11:29 PM
import data into SQL Server from Excel Rachel[_2_] Excel Discussion (Misc queries) 1 October 27th 08 02:35 AM
How to import data from SQL Server amit Excel Discussion (Misc queries) 0 January 15th 07 05:35 AM
Import data from mysql on a web server Shaun[_5_] Excel Programming 1 March 7th 04 12:54 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"