Beispiel #1
0
        public static int NonQuerySQL(string Conn, string SQLString, params object[] cmdParms)
        {
            switch (DataBaseType)
            {
            case DBType.SQL:
                return(SQLServerOP.NonQuerySQL(Conn, SQLString, (SqlParameter[])cmdParms));

            case DBType.Access:
                return(AccessOP.NonQuerySQL(Conn, SQLString, (OleDbParameter[])cmdParms));
            }
            return(0);
        }
Beispiel #2
0
        public static int NonQuerySQL(string SQLString)
        {
            switch (DataBaseType)
            {
            case DBType.SQL:
                return(SQLServerOP.NonQuerySQL(SQLString));

            case DBType.Access:
                return(AccessOP.NonQuerySQL(SQLString));
            }
            return(0);
        }