.Net client connecting to SQL 2005 with wrong provider

前端 未结 2 392
谎友^
谎友^ 2021-01-24 14:03

I am trying to connect to a database on a server from a developer machine. The server has the named pipes protocol disabled. For some reason from one developer\'s box we get t

相关标签:
2条回答
  • 2021-01-24 14:46

    You can try to run the command "CliConfg.exe" and set the default protocol to "TCP/IP"

    0 讨论(0)
  • 2021-01-24 14:47

    From Win98 clients and ADO, we used to force TCPIP on the connection by adding this to the connection string: Network Library=dbmssocn;

    On XP, you can do the same with: Network Library=TCPIP;

    Not sure if this is still supported or encouraged by M$ for ADO.Net connections.

    0 讨论(0)
提交回复
热议问题