Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 1
Default Excel error connecting to sqlserver using ADODB, but can thru Datamenu

We have an excel sheet that connects and pulls data from SQL Server
2005. We want to format and change the data a little before filling
the sheet. This is why we use ADODB within the macros.

We are getting the following error when we try to connect to the
database:

Runtime Error '-2147220999(800401f9) Method 'Active Connection'
of object _Command failed

However we are able to pull data using the "Import External Data"
option from the Data Menu of excel.

Our customer is actually having this problem. For other customers the
ADODB connection works fine.

This particular customer is running Windows 2003. We have made sure
they have the latest MDAC.

Anyone have any ideas of what we can look for?

Thanks....
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
Excel Error while connecting to OLAP cube Prakashkumaar Excel Discussion (Misc queries) 0 April 20th 09 01:15 PM
adodb connecting to a server issues [email protected] Excel Programming 0 March 7th 06 10:39 PM
ADODB from SQLServer - IF function? onedaywhen[_2_] Excel Programming 1 January 12th 05 02:21 PM


All times are GMT +1. The time now is 05:26 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"