Connecting to SQL Server from java with TCP disabled

前端 未结 3 1310
臣服心动
臣服心动 2021-01-05 00:49

I\'m trying to connect to a local database (SQL Server 2008) from Java. I have disabled the tcp connections per customer requirements and I can\'t connect. I have to disable

3条回答
  •  礼貌的吻别
    2021-01-05 01:43

    Unfortunately, Microsoft's JDBC driver does not support named pipes connections to SQLServer. You can try finding and alternative JDBC driver to use.

    Take a look at jTDS. It's free, open source, and it connects to SQLServer using named pipes.

提交回复
热议问题