In general, I've loved the connections tab that was implemented within RStudio. However, I'm now trying to connect to my employer's Microsoft SQL Database and is normally accessed through Windows Authentication.
I've Googled and looked around but I'm still having trouble understanding exactly how to implement this.
When I'm trying to connect from Mac with ODBC Driver 13, I get "Login timeout expired" error.
For ODBC driver 17, it never stops attempting to connect, and I have to kill RStudio for it to stop
I'm on a Mac. My data is in SQL Server. Windows VDI is super slow. I want to run queries against the SQL server out of RStudio. I feel like it may be more efficient than going into the virtual Windows, firing up SSMS, running a query, saving the results on a shared drive, and then picking the data up from Mac.
Alternatively, of course, I can run RStudio on the virtual Windows desktop. But then again, it is slow AF. And annoying.
Thanks @edgararuiz! I was about to ping you yesterday, but then I found those links on my own somehow...
I think I figured everything out, I believe my last stumbling block is the fact that I use Windows authentication to get into my SQL server. Which is obviously is hard to do from a Mac
That's my current workflowfor accessing anything on SQL Server. I can access Redshift (postgres driver) from Mac, but I have not figured out how to get the combination of ODBC windows auth working right in Mac at all.
So how you then shift back into your native Mac environment and the RStudio instance there? Or are you stuck in the Windows RStudio for the entire analysis?
If i have to connect to SQL server I tend to put a top comment that says, ## run this junk in Windows
For my use case that's fine as I have two work arounds: We have an internal system where I can turn any query into an API that I pass parameters to. Because it's just a GET request that works from any platform. So sometimes after I work out a query I just turn it into an API. Clearly that's not helpful for stuff like dbplyr backends. For interactive dplyr stuff I just say in Win. The other workaround is to cache data locally that I fetched from Windows.
At the end of the day, you'll need to use either "open text" credentials, or somehow tack into a Kerberos ticket to take advantage to the Integrated Security from MS. Internally, we are able to test Mac with MS databases by using a service account.
Oftentimes, I get a pop-up window asking for my Windows credentials.
I think I need to have a talk with our IT and see if I can get an "open text" credentials account.
Thanks all.
P.S. See you at rstudio::conf2019? Maybe? When does registration open?
There is software out there that allows for Windows Auth within a Mac environment.
Tableau is one example. If you open up Tableau on your Mac, and one of the data sources is a SQL Server with Windows Auth, Tableau will simply prompt you to enter your Windows credentials.
Right. But that's still "open text" credentials, isn't it?
Would that authenticate me based on Windows authentication while I'm on Mac? I don't think so.
I was bringing up examples of software that is able to log you into the MS SQL Server using Windows Authentication, while on Mac.