troubleshooting Question

Excel VBA Error &H80004005 (-2147467259) SQLOLEDB

Avatar of trbbhm
trbbhmFlag for Afghanistan asked on
Microsoft SQL ServerMicrosoft ExcelVB Script
5 Comments1 Solution3129 ViewsLast Modified:
I have a spreadsheet with VBA code that is crashing on one of my laptops.  It crashes at the "cnASC.Open" line and gives the following error message:

"System Error &H80004005 (-2147467259) unspecified error"

Dim cnASC As ADODB.Connection

cnASC.ConnectionString = "Provider=SQLOLEDB;Data Source=SAPPHIRE;Initial Catalog=asc_br;Integrated Security=SSPI;Auto Translate=False"
cnASC.Open

I have a sneaking suspicion that the provider might not exist on the laptop, and I've run MDAC_TYP.EXE on the laptop to try to remedy the situation, but to no avail.

I hope someone has a solution for me.  Thanks!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros