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
20 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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Monitoring systems evolution, cloud technology benefits and cloud cost calculators business utility.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

20 Experts available now in Live!

Get 1:1 Help Now