SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.TableDatabaseName()
Returns the database name of the specified table.
Parameter | Type | Description |
---|---|---|
table |
Variant |
Specifies a table's display name in order to return the table's database name. If table is a non-numeric string, it is taken as the table's display name, such as "Issues". Otherwise, the parameter is converted to a number and taken as the table's ID. Use caution when using the display name because it can be changed in SBM Composer. |
Type | Description |
---|---|
string |
Returns the database name of the table if the display name exists. If not, an empty string is returned. |
SBM ModScript version: 11.3.
This method can be used to return the database name of a table, which can be helpful when building SQL statements.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.