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
103 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
On Feb. 28, Amazon’s Simple Storage Service (S3) went down after an employee issued the wrong command during a debugging exercise. Among those affected were big names like Netflix, Spotify and Expedia.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

729 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