Table Remote Info

Table Remote Info
 1ot = impact.gui.output_toolbox
 2
 3ot.clear()
 4
 5db = impact.active_database
 6tbl = db.settings.tables.item("GRADES")
 7
 8if not (tbl.isNone()) and (tbl.type == ipDatabaseTableType.dttRemote):
 9    ot.add("Located remote table '" + tbl.name + "'")
10
11    if not tbl.remote_index.isNone():
12        ot.add("Remote Index Column: " + str(tbl.remote_index.name))
13        ot.add("Auto Increment values: " + str(tbl.remote_auto_increment))
14        ot.add("Row Zero Locking: " + str(tbl.remote_row_zero_locking))
15
16else:
17    ot.add("Unable to find remote table 'GRADES'")
18