Page 1 of 1

GetDatabaseNames function

Posted: Wed 09 Jan 2013 14:32
by dam54
Hello - can anyone help me with how this works. Specifically, I'm trying to figure out what determines which databases are returned. Does it go by the SQL login User's permissions? User's Roles? We have had different results and can't seem to determine what the criteria is. Thanks!

Re: GetDatabaseNames function

Posted: Wed 09 Jan 2013 14:54
by AndreyZ
Hello,

The TMSConnection.GetDatabaseNames method returns all available databases on the server. If a user that is used to connect to the server does not have enough rights to work with a database, the name of this database will not be in the resulting list.