C#反编译微软MSDN2003的帮助文档,并将反编译结果保存到一个SQLSERVER数据库中__教程 |
|
日期:2007-5-20 0:37:44 人气:169 [大 中 小] |
|
|
|
InvokeSetLabelText( lblState , "更换数据库为 " + CurrentDBName ); InsertCmd.Dispose(); using( System.Data.SqlClient.SqlCommand myCmd = MainConn.CreateCommand()) { myCmd.CommandText ="CREATE DATABASE " + CurrentDBName + " ON (NAME = ’" + CurrentDBName + "’, FILENAME = ’f:\\db\\" + CurrentDBName + ".mdf’ )"; myCmd.ExecuteNonQuery(); } InsertCmd.Dispose(); DataConn.ChangeDatabase( CurrentDBName ); using( System.Data.SqlClient.SqlCommand myCmd = DataConn.CreateCommand()) { myCmd.CommandText = @" CREATE TABLE [MSDNFile] ( [MFileID] [int] NOT NULL , [MFileContent] [image] NULL , CONSTRAINT [PK_MSDNFile] PRIMARY KEY CLUSTERED ( [MFileID] ) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] "; myCmd.ExecuteNonQuery(); }//using InvokeSetLabelText(lblDB , "当前数据库:" + CurrentDBName ); InitInsertCmd(); FileSizeCount = 0 ; }//if }//try catch(Exception ext) { System.Windows.Forms.MessageBox.Show( ext.ToString()); |
|
出处:本站原创 作者:佚名 |
|
|