Name Pipes,一般局域网用,速度最快,必须用服务器名连接。
TCP/IP,可以用于局域网和远程,可以用用服务器名和IP地址连接。
MultiProtocol,不清楚。如何知道SQL SERVER是用NT还是SQL验证?
可以在企业管理器查到。

解决方案 »

  1.   

    给个Name Pipes的连接串好吗?ADO用的
      

  2.   

    set conn=server.CreateObject ("adodb.connection")
    conn.Open "dsn=sise;uid=sa;pwd=admin"
    PB:中
    SQLCA.Database = 'dbname'
    SQLCA.ServerName = 'PCName'
    SQLCA.LogId = 'sa'
    SQLCA.LogPass = 'abc'
      

  3.   

    The Multiprotocol selection has two key features:
    1.Automatic selection of an available network protocol to communicate with
     Microsoft® SQL Server™.(自动选择)
          This is convenient when you want to connect to multiple servers
     running different network protocols, but do not want to
     reconfigure the client connection for each server. If the client and 
    server Net-Libraries for TCP/IP Sockets, NWLink IPX/SPX, or Named Pipes
     are installed on the client and server, the Multiprotocol Net-Library will
     automatically choose the first available network protocol to establish a 
    connection. 2.Client encryption. (加密,网络传输性能降低25%,lan上不会有太大影响)
    You can enforce encryption over the Multiprotocol Net-Library on clients
     running Microsoft Windows NT® or Microsoft Windows® 95/98 to prevent
     others from intercepting and viewing sensitive data.
      

  4.   

    VB连接串:
    strConnect = "Provider=sqloledb;Data Source=TestServer;Initial Catalog=TestDataBase;User Id=UserId;password=Pass; "
    dim con as new adodb.connect
    con.open strConnect
    ...
      

  5.   

    或者:
    strConnect = "driver={SQL Server};server=testserver;uid=sa;pwd=pass"
      

  6.   

    我来说说我的认识:你说的Name Pipes,TCP/IP和MultiProtocol, 是SERVER认可的客户端连结方式。 局域网中NAMED PIPES是最EASY的方法,特别指出:只安装NETBEUI协议的网络,就只能用NAMED PIPES.而你问到关于NAMED PIPIS 的连接串,其实,ADO的连接串是基于SERVER认可通讯协议之上的。也就是说,不管是那种连接方式,ADO的连接串都一样。上面各位同学都写出了正确的连接串。关于最后的问题, 企业管理器--SERVER的右键菜单--SERVER属性--安全性。
      

  7.   

    这些 ConnectionString都是TCP/IP吧?ADO没有针对Named Pipes的?
      

  8.   

    JULYCLYDE: ADO不关心服务器和客户端之间是用的什么连接,而客户端选用那种连接方式,应该在客户端的客户端连接工具中配置。如果你一定要在连接的时候指定用那种连接方式,你需要建立odbc的dsn。在dsn中制定客户端的连接方式。
      

  9.   

    如果ado是通过dsn来连接的话,那么是ado最终和SQL Server通信的方式到底是Named Pipes还是TCP/IP,应该是由dsn地连接方式来决定的。
      

  10.   

    strConnect = "driver={SQL Server};server=testserver;uid=sa;pwd=pass"
    这种连接方式,应该是Named Pipes。理由:
    因为是指定了servername,而机器名不是TCP/IP所支持的东西。而且在能识别机器名的网络里,Named Pipes是最快的,作为默认连接也是可以理解的。
    不知分析的对不对
      

  11.   

    named pipes是缺省的安装设置,用于在nt网络上允许本地或网络通讯;
    tcp/ip不用说了吧;
    multi protocol(多协议)使用windows RPC结构来通信。它支持以上两种协议。
      

  12.   

    是不是ADO的连接串和具体连接方式无关?ADO的串只是指定主机名而已?