示例#1
0
    public static string  ExcuteReturnedSQLByReader_WebService(string Sql)
    {
        string constr = Constr;

        try
        {
            CamMonitor.DBService.dbMethods db = new CamMonitor.DBService.dbMethods();
            return(db.ExcuteReturnedSQLByReader(Sql));
        }
        catch (Exception er)
        {
            return("");
        }
    }
示例#2
0
    public static int ExcuteNonSQL_WebService(string Sql)
    {
        string constr = Constr;

        try
        {
            CamMonitor.DBService.dbMethods db = new CamMonitor.DBService.dbMethods();
            return(db.ExcuteNonSQL(Sql));
        }
        catch (Exception er)
        {
            return(0);
        }
    }