Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->数据库应用 ->其他数据库 ->正文

数据库连接字符串大全

来源:Linuxdby.com 作者:Webmaster 时间:2007-06-03 点击: [收藏] [投稿]

"Provider=MSDataShape;Data Provider=SQLOLEDB;Data Source=Aron1;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
Want to learn data shaping? Check out 4GuyfFromRolla's great article about Data Shaping >>
  •  Read more

    •  How to define which network protocol to use

      • Example:
        "Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"

        Name Network library
        dbnmpntw Win32 Named Pipes
        dbmssocn Win32 Winsock TCP/IP
        dbmsspxn Win32 SPX/IPX
        dbmsvinn Win32 Banyan Vines
        dbmsrpcn Win32 Multi-Protocol (Windows RPC)


        Important note!
        When connecting through the SQLOLEDB provider use the syntax Network Library=dbmssocn
        and when connecting through MSDASQL provider use the syntax Network=dbmssocn