C#数据库连接DB2的方法 using System; using System.Collections.Generic; using System.Text; using System.Data; using IBM.Data.DB2; namespace Person.Data { /// /// 连接DB2数据库类 /// public class DBConnectDB2 : DBConnect { /// /// 公共连接连接符 /// public static String PublicConnString = ""; /// /// 私有连接字符串 /// private String PrivateConnString = ""; private DB2Command SqlCmd = null; /// /// 初始化类的新实例 /// public DBConnectDB2() { }