Attribute VB_Name = "Const"
'数据库访问常量
Public Const SQL_C_CHAR As Long = 1
Public Const SQL_COLUMN_LABEL As Long = 18
Public Const SQL_DROP As Long = 1
Public Const SQL_DRROR As Long = -1
Public Const SQL_NO_DATA_FOUND As Long = 100
Public Const SQL_SUCCESS As Long = 0
Public Const SQL_SUCCESS_WITH_INFO As Long = 1
Public Const SQL_ATTR_MAX_LENGTH As Long = 100
'数据源信息常量
Public Const DATABASE As String = "store"
Public Const DSN As String = "Stocks"
Public Const DB_USER_NAME As String = "sa"
Public Const DB_PASSWORD As String = "sa"
'一次执行connect操作可以访问数据库的次数
Public Const CONNECT_LOOP_MAX = 10