Pings the server to test the network and response speed of database. This method may needs some privilege according to the database product and its version. Examples Following section demonstrates ping and calculate average time. {{hl}}var ddl = connection.DDL();{{/hl}} var ping = ddl.{{hl}}PingServer(){{/hl}}; Console.WriteLine("Ping = " + ping.TotalMilliseconds.ToString() + "ms."); Ping = 0ms. jJ0DZ7
{{hl}}var ddl = connection.DDL();{{/hl}} var ping = ddl.{{hl}}PingServer(){{/hl}}; Console.WriteLine("Ping = " + ping.TotalMilliseconds.ToString() + "ms.");