|
Allows you to query information about and disconnect a SQL client.
Use the DtoSqlClients Collection to obtain all the current SQL clients.
' Instantiate session and connect Dim my_session as new DtoSession Dim result as DtoResult result = my_session.Connect("myserver", "username", "password") ' Get monitor object from session Dim my_monitor as DtoMonitor Set my_monitor = my_session.Monitor ' Now get SQL Clients from monitor Dim my_sqlclients as DtoSqlClients Set my_sqlclients = my_monitor.SqlClients ' Pick first client from collection and find ' the DSN associated with it Dim first_sqlclient as DtoSqlClient Dim DSNname as string Set first_sqlclient = my_sqlclients(1) DSNname = first_sqlclient.DSN
DtoSqlClients Collection
DtoMonitor Object
Disconnects a specific SQL Client.
|
result
|
DtoResult long value indicating the result of the method call. Use the Error property of the DtoSession Object to obtain a description for the result.
|
Call this method for every SQL client you wish to disconnect.
|
Chapter contents
Prev topic: DtoSqlClients Collection
|