dbGetUserName#

Purpose#

Returns the database connection’s user name.

Format#

user_name = dbGetUserName(db_id)#
Parameters:

db_id (scalar) – database connection index number.

Returns:

user_name (string) – containing the user name associated with the specified database connection.

Examples#

// Add MySQL to the list of database connections
db_id = dbAddDatabase("MYSQL");

// Set the user name
dbSetUserName(db_id, "admin");

// Retrieve the user name
user_name = dbGetUserName(db_id);
print user_name;

See also

Functions dbSetUserName()