Solved

Excel VBA Error connecting to Azure : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Posted on 2016-11-15
2
45 Views
Last Modified: 2016-11-16
Hi

I have an Excel VBA project that connects to a SQL Azure database using the following type of connection string. This works fine on my dev machine but when I try and run it on another person's machine I get the error mentioned in the header. Where would I find the relevant driver to fix this issue. I only seemed to be able to find software that I would have to pay for.

strConn = "Driver={SQL Server Native Client 11.0};Server=tcp:lesedisa.database.windows.net,1433;Database=xxx;Uid=xxxxx;Pwd=xxxx;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;"
0
Comment
Question by:murbro
2 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 41889336
This connection string requires SQL Server Native Client 2012 to be installed. Alternative drivers and more info at https://msdn.microsoft.com/en-us/library/cc280510.aspx. Possible connection strings can be seen at www.connectionstrings.com.
0
 

Author Closing Comment

by:murbro
ID: 41889359
Thank you very much
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Being an active EE Expert means to get a lot of (E)EMail, as you certainly know. If you are using Outlook, I'll show you how to minimize your inbox contents without losing anything – even improve the experience by changing the Subject line to facili…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now