Beispiel #1
0
        public DataTable ExecTableObjectInfo(TableObject type, string table_name, string table_owner)
        {
            MSSqlService sql = new MSSqlService();

            sql.AddParameter("@table_name", SqlDbType.VarChar, table_name);
            sql.AddParameter("@table_owner", SqlDbType.VarChar, table_owner);

            return(sql.ExecuteSPDataSet("sp_" + type.ToString()).Tables[0]);
        }