this.oleDbConnection1.ConnectionString = @"Provider=DB2OLEDB;
Cache Authentication=False;
Integrated Security="";
PassWord=freebsd9;
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=37;PC Code Page=1282;
Network Address=172.23.169.1;
Network Port=4444;Package Collection=qcdb;
Default Schema=userid;Alternate TP Name="";
Process Binary as Character=False;
Units of Work=RUW";
透過設計工具產生連線字串可避免手寫參數錯誤,快速實現資料庫連線。