clssqlupgrade.vb

来自「软件用于升级SQL数据库」· VB 代码 · 共 37 行

VB
37
字号
Imports ADODB
Imports ADOX
Imports DAO
Imports JRO

Public Class clsSqlUpgrade
    '
    '   SQL Database Upgrade Utility
    '
    '   By:  	Richard B. Sorensen
    '           rich@westernesse.com
    '           www.westernesse.com
    '
    '   This application is used to upgrade an SQL database via an external script file.
    '   Any type of database schema update can be done - adding, deleting, or modifying
    '   tables, fields and/or indexes.  Furthermore these routines can be used with any
    '   type of database (Access, MySql, Oracle, Postgres, SqlServer, etc.)  All that is
    '   necessary is to supply the database type and a connection string.  Many variations
    '   and features for specific database systems are implemented as a part of this app,
    '   and additional customizations can be added as desired.
    '
    '   If you make any enhancements, please send a copy of the code back to the author
    '   along with documentation indicating the changes that were made so that the
    '   additional functionality can be shared with others.
    '
    '   The database upgrade logic was written as a VB.Net class (clsSqlUpgrade.vb) with
    '   one public method (UpgradeDatabase).  The class module can be placed directly
    '   within a project, as has been done in the associated sample, or it can be compiled
    '   into a DLL by using the associated class library project.  The sample project
    '   contains logic to locate the script file for processing as well as an Access
    '   database file, but could easily be modified to work with another type of database
    '   simply be changing the connect string.  
    '
    '   The database upgrade code employs three Microsoft classes for the following
    '   purposes:
    '
    '       ADODB   (ActiveX Data Objects for Databases) 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?