1)使用IBM OLE DB Provider for db2
Provider=IBMDADB2.DB2COPY1;Password=1;Persist Security Info=True;User ID=db2admin;Data Source=SAMPLE;Location=SHARK-LABTOP:50000
2) 使用IBM.DB2.Data.dll 基于.NET FRAMEWORK 2.0
Password=1;User ID=db2admin;Database=SAMPLE;Server=SHARK-LABTOP:50000
或者
PWD=1;UID=db2admin;Database=SAMPLE;Server=SHARK-LABTOP:50000