Cannot connect to SQL database - Excel for Mac 2019

msklut

New Member
Joined
Dec 12, 2019
Messages
8
Office Version
  1. 2019
Platform
  1. MacOS
I cannot connect to my SQL database... I have all the right credentials, which work in Sequel Pro just fine. However I keep getting this error in Excel for Mac 2019...

[SqlServerODBC] (15) Failed to connect to the SQL Server instance: [HY000]: Connection broken unexpectedly

Please advise. Thank you!

 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Also... just to clarify — I'm using the connect to SQL Sever ODBC Data Source option. For authentication, I'm using username/password....
 
Upvote 0

Thanks for passing that along. I am entering the information from this drop down in the toolbar. Is this right?

Screen Shot 2020-02-14 at 13.18.04.png
 
Upvote 0
when i do code, I'm using it in the VBA, I have a couple of connection strings and don't need to experiment, so i'm not sure how to craft them quickly to meet your needs, sorry
 
Upvote 0
when i do code, I'm using it in the VBA, I have a couple of connection strings and don't need to experiment, so i'm not sure how to craft them quickly to meet your needs, sorry

OK. Do you understand how the iODBC Data Source Chooser panel works? I tried changing the configuration for both of the system DSN to match my database, but nothing worked.

Screen Shot 2020-02-14 at 14.11.56.png
Screen Shot 2020-02-14 at 14.11.58.png
Screen Shot 2020-02-14 at 14.14.25.png
 
Upvote 0
Update: got this working by getting the correct OBDC driver from actualtech.com.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top