Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set SQL Server Authentication Method in DataGrip?

Is there a way to specify the authentication method (SQL Server or Windows Authentication) when connecting to SQL Server with DataGrip?

I have tried configuring using both the SQL Server(jTDS) and the SQL Server(Microsoft) drivers and don't see an option on either.

like image 605
bigtunacan Avatar asked Jan 04 '16 20:01

bigtunacan


People also ask

How do I change the authentication method in SQL Server?

Change authentication mode with SSMSIn SQL Server Management Studio Object Explorer, right-click the server, and then click Properties. On the Security page, under Server authentication, select the new server authentication mode, and then click OK.

How do I enable authentication mode in SQL Server?

2.3 Enabling SQL Authentication or Mixed AuthenticationRight-click the server you wish to modify and then click Properties. Select the Security Page. Under the Server authentication heading choose either the desired authentication: Windows Authentication or SQL Server and Windows Authentication mode. Click OK.

Does DataGrip work with SQL Server?

JetBrains DataGrip is a cross-platform IDE for SQL with first-class support for Microsoft SQL Server and other databases and DDl sources.


1 Answers

With the jTDS Driver:

This is dependent on the settings for the connection/data source.

i.e. To set up a connection for Windows Authentication:

  1. In the "General" tab, if specify your Windows/AD Username in the User field.
  2. on the "Advanced" tab, in the DOMAIN property, specify the domain for the Windows account you put in Step 1.
  3. You may need to set USENTLMV2=true if Kerberos authentication isn't enabled on your network

If you don't specify the domain in step 2, it will assume you are doing a SQL Server Authentication login attempt.

With the Microsoft Driver:

I couldn't get this to work on OS X, but most people seem to have no issues on Windows.

  1. In the "Advanced" tab for the data source, set integratedSecurity to true.

n.b. you may have to also set this property for the actual Driver as well, on OS X i was getting continually "This driver is not configured for Integrated Authentication", but that could be OS X thing.

Hope this helps.

like image 179
pwae Avatar answered Oct 06 '22 08:10

pwae