LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Can't get connection string right

Perhaps you need to break up the string. Looking at an example from the KB,
both .Provider and .ConnectionString properties are set:

http://support.microsoft.com/default...19&Product=xlw


--
HTH -

-Frank Isaacs
Dolphin Technology Corp.
http://vbapro.com




"Brad Wood" wrote in message
...
I use the following connection string in ADO objects
outside of Excel to connect to a SQLServer database and
run commands and it works fine:

"Provider=SQLOLEDB.1;Password=[];Persist Security
Info=True;User ID=sa;Initial Catalog=poptart;Data
Source=BWOOD\TROGDOR_DB"

When I set the connection string of an ADODB.Connection to
this and try to run a command, I get the error
message, "Requested operation requires an OLE DB Session
object, which is not supported by the current provider"

Anyone know why/what to change?



 
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
Relative Path in Connection String Breunus Excel Discussion (Misc queries) 2 July 29th 09 05:10 PM
Globally change an Access connection string PJFry Excel Discussion (Misc queries) 0 June 26th 09 12:25 AM
How do I use a connection string? BrandenK Excel Discussion (Misc queries) 0 September 25th 07 07:10 PM
Can't get connection string right Brad Wood[_2_] Excel Programming 0 September 30th 03 09:38 PM
What is the connection string ? Jan Karel Pieterse Excel Programming 0 July 25th 03 11:37 AM


All times are GMT +1. The time now is 06:38 AM.

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"