博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Datagrip连接SQLServer Connecting DataGrip to MS SQL Server
阅读量:5934 次
发布时间:2019-06-19

本文共 3183 字,大约阅读时间需要 10 分钟。

Connecting DataGrip to MS SQL Server

Posted on by

Some specific needs of SQL developers like connecting to from OSX and even using Windows authentication can be covered by DataGrip. Since releasing DataGrip, we’ve received lots of comments about connecting to SQL Server. It appears it’s not straightforward as with other databases, requiring a couple of extra steps beforehand. Here is a small guide describing the main problems you may face and how to solve them.

First, ensure that important options in are configured correctly. Make sure the SQL Server Browser is running:

TCP/IP connections need to be enabled:

To know the port for the connection just click on TCP/IP. In our case, it’s default port 1433.

If you end up changing anything, restart the server. For most situations, this will resolve connection problems, your server will accept remote connections and you are ready to go. If you still have problems, it could be that TCP port needs to be adjusted or the remote connection to SQL server needs to be enabled in its settings. will walk you through it, but we’ll also describe the process here.

Invoke Database View by pressing Alt/Cmd+1 and create a new data source with the appropriate driver. If you use a Microsoft driver, note that it supports SQL Server 2008 and later versions. Here we’ll assume it’s the jTds driver.

If you have no driver, download it by clicking the link.

Then enter the host name, the instance name and the credentials. Remember that DataGrip offers completion for host, instance and database names (Ctrl/Cmd+Space), but the name of the database is optional. For those who are used to the SSMS interface, let’s compare the connection windows.

If the port number conflicts with the instance name, in the jTds driver, the instance name will take precedence over the port number, while the opposite will happen in the Microsoft driver. To avoid confusion, simply remove the port number. If you strongly wish to specify the port number, click the Auto-set button (located to the right of the Instance field) to have the port number set automatically. But remember that the port number can be changed in case you restart the server.

If you need to use Windows authentication, only Microsoft driver will let you do it.

The other way to connect to the server with Windows authentication is to use domain authentication of jTds driver, which lets you connect from any other machine. What is notable, it works on any OS. To do this, go to the Advanced tab of data source properties, set USENTLMV2 to true and specify the domain name in the DOMAIN field.

Then enter your Windows credentials in user/password fields and click Test Connection.

If you want to check which particular databases or schemas are shown in the database view, go to the Schemas tab in Data source properties:

In case you are already using DataGrip 2016.2 EAP, use More Schemas… in the database view:

All selected databases will appear in the database view. This is how it looks in SQL Server Management Studio:

And here’s how it looks in DataGrip:

That’s it! If you are experiencing any other problems, please or create an issue in our .

Your DataGrip Team

The Drive to Develop

转载地址:http://okjtx.baihongyu.com/

你可能感兴趣的文章
java.lang.NoClassDefFoundError: javax/mail/Authenticator
查看>>
联想集团涨超7% 杨元庆持股比例升至8.12%
查看>>
各省光伏十三五规划汇总:总规模将超130GW
查看>>
Apache Storm 官方文档 —— 常用模式
查看>>
聊聊JVM的年轻代
查看>>
lvm逻辑卷管理
查看>>
网页内嵌播放器
查看>>
VS2010不能断点/下断的问题
查看>>
[Android]权限处理
查看>>
Ubuntu修改时区
查看>>
JavaScript中核心概念Scope理解
查看>>
Mybatis 常用的几个对象
查看>>
参加微软 MVP 之夜暨微软技术与生态大会
查看>>
屌丝气质难掩,逼人逃离么?
查看>>
OFBiz + Opentaps 目录管理 四. 产品(一)定义产品
查看>>
list泛型类型获取
查看>>
VIM一些用法
查看>>
Nginx 502错误原因与解决办法
查看>>
使用Django来处理对于静态文件的请求
查看>>
dom4j解析xml的简单实用
查看>>