proc showCount {} {
#
#	use the housekeeping channel dbpipe2
#
	global server table Qtable DB

#
#	Qtable is the form of the table name to be used in
#	query.  PG does not accept the qualified own.tbl form,
#	but Sybase does.

	if {$table == ""} {
	setMsg .m.msg "Sorry, you haven't selected a table yet."
	return
	}

	set Qtable $table
	if {$DB == "PG"} {
		set Qtable [lindex [split $table .] end]
	}
#
	set sqlcmd "select count(*) from $Qtable"
	set res [queryDB $sqlcmd]
	puts stderr "showCount query res $res"
	set rc [nextRec]
	puts stderr "showCount got count $rc"
	setMsg .m.msg "$server: selected table $table has $rc records"
	
}
