C#反编译微软MSDN2003的帮助文档,并将反编译结果保存到一个SQLSERVER数据库中__教程 |
|
日期:2007-5-20 0:37:44 人气:169 [大 中 小] |
|
|
|
) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
*****************************************************************************************/ /// /// 取消操作标记 /// private bool bolCancel = false ; /// /// 暂停操作标记 /// private bool bolPause = false ; /// /// 主数据库连接字符串 /// private System.Data.SqlClient.SqlConnection MainConn = null; /// /// 文档数据库连接字符串 /// private System.Data.SqlClient.SqlConnection DataConn = null; /// /// 插入文档列表的命令对象 /// private System.Data.SqlClient.SqlCommand InsertNameCmd = null; /// /// 查询文档内容的命令对象 /// private System.Data.SqlClient.SqlCommand InsertCmd = null; /// /// 保存文档数据的数据库名称 /// private string CurrentDBName = "MSDN1" ; /// /// 进行数据处理的线程对象 /// private System.Threading.Thread myThread = null;
/// /// 初始化数据库连接 /// private void InitDB() { if( MainConn != null) { MainConn.Dispose(); DataConn.Dispose(); InsertNameCmd.Dispose(); } // 打开数据库连接 MainConn = new System.Data.SqlClient.SqlConnection(); DataConn = new System.Data.SqlClient.SqlConnection(); MainConn.ConnectionString = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MSDN1;Data Source=(local)"; DataConn.ConnectionString = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=" + CurrentDBName + ";Data Source=(local)"; MainConn.Open(); DataConn.Open();
InsertNameCmd = MainConn.CreateCommand(); |
|
出处:本站原创 作者:佚名 |
|
|