Wednesday, February 17, 2010

Find TableName from TableId

Sometimes I see a tableId in the data (i.e. in a refTableId field) and I wonder what table that is.

I use this job to find it:
static void NDPToolsShowTableNameFromId(Args _args)
{
    SysDictTable sysDictTable;
    int          id = 40015; //enter your ID here
    ;
    sysDictTable = new SysDictTable(id);
    info (sysDictTable.name());
}

1 comment:

  1. Very useful,

    thank you so much!

    Kind regards,
    Max

    ReplyDelete