Intellij Idea 配置database 连接SQL Server 2012

首先确认通过TCP IP来连接连接SQLServer 2012

   

  1. 确保 Server Authentication选择了SQL Server and Windows Authentication mode

       

  2. 打开 SQL SERVER CONFIGURATION MANAGER, 选择数据库实例,把Named PipesTCP/IP Status修改为Enabled

  3. 双击TCP/IP,选择IP Addresses,把所有IP Enabled改为Yes, IPAll TCP Port 改为1433

       

       

    通过Intellij Idea 13 来连接SQL Server 2012 配置

       

  4. 打开Intellij Idea 13,选择Database窗口,点击添加 - Data Source - SQL Server - Microsoft

  5. 输入SQL Server 的配置信息

       

  6. Driver files 选择 SQL Server / Microsoft, 点击 downloadIntellij idea就会自动下载驱动。

       

       

  7. 点击Test Connection, 出现如下对话框,表示已经连接成功了。

       

posted @ 2014-08-26 10:50  Wayne Shen  阅读(17834)  评论(0编辑  收藏  举报