Intellij Idea 配置database 连接SQL Server 2012
首先确认通过TCP IP来连接连接SQLServer 2012
- 确保 Server Authentication选择了SQL Server and Windows Authentication mode
- 打开 SQL SERVER CONFIGURATION MANAGER, 选择数据库实例,把Named Pipes和TCP/IP Status修改为Enabled
- 双击TCP/IP,选择IP Addresses,把所有IP Enabled改为Yes, 把IPAll 的TCP Port 改为1433
通过Intellij Idea 13 来连接SQL Server 2012 配置
- 打开Intellij Idea 13,选择Database窗口,点击添加 - Data Source - SQL Server - Microsoft
- 输入SQL Server 的配置信息
- Driver files 选择 SQL Server / Microsoft, 点击 download,Intellij idea就会自动下载驱动。
- 点击Test Connection, 出现如下对话框,表示已经连接成功了。