= @Provider=DB
Cache Authentication=False;
Integrated Security=;
Password=freebsd
Persist Security Info=True;
User ID=userid;Initial Catalog=qcdb;
Data Source=qcdb;Mode=ReadWrite;
Extended Properties=;
APPC Remote LU Alias=;
APPC Local LU Alias=;
APPC Mode Name=QPCSUPP;
Network Transport Library=TCPIP;
Host CCSID=
Network Address=
Network Port=
Default Schema=userid;Alternate TP Name=;
Process Binary as Character=False;
Units of Work=RUW
用服務器資源管理器工具生成連接可避免錯寫各種參數
Web Form顯示數據庫數據
為Web Form新增一個OleDbDataAdapter類的對象oleDbDataAdapter
//打開數據庫連接
oleDbDataAdapter
//將得來的數據填入dataSet
DataGrid
//綁定數據
oleDbConnection
//關閉連接
編譯運行後
[
From:http://tw.wingwit.com/Article/program/net/201311/15158.html