我需要验证我的所有者是否有权执行存储过程,但我必须在sys表上进行搜索。我可以在哪个表中找到它。
谢谢!
答案 0 :(得分:2)
与其名称相反,DBA_TAB_PRIVS允许我们查看所有对象的授予权限,而不仅仅是表。
private void tableLayoutPanel1_MouseClick(object sender, MouseEventArgs e)
{
int row = 0;
int verticalOffset = 0;
foreach (int h in tableLayoutPanel1.GetRowHeights())
{
int column = 0;
int horizontalOffset = 0;
foreach (int w in tableLayoutPanel1.GetColumnWidths())
{
Rectangle rectangle = new Rectangle(horizontalOffset, verticalOffset, w, h);
if (rectangle.Contains(e.Location))
{
MessageBox.Show(String.Format("row {0}, column {1} was clicked", row, column));
return;
}
horizontalOffset += w;
column++;
}
verticalOffset += h;
row++;
}
}