Permalink
Browse files

[Dashboard] IsAlive column query

  • Loading branch information...
gboge committed Jul 5, 2017
1 parent 1f4666e commit 5ca59f8a5a574e000521ae54d14b9cf4bb6a58d7
Showing with 11 additions and 0 deletions.
  1. +11 −0 KServer.cs
View
@@ -1150,6 +1150,17 @@ SELECT drive
return d.ExecuteWithResults(sql).Tables[0];
}
/// <summary>
/// Just a simple query to test the connectivity
/// </summary>
/// <param name="s">your smo server object</param>
/// <returns>a datatable</returns>
public static DataTable DashboardIsAlive(this smo.Server s)
{
smo.Database d = s.Databases["master"];
return d.ExecuteWithResults("select 1").Tables[0];
}
public static bool IsOleAutomationProcedureActivated(this smo.Server s)
{
foreach (Microsoft.SqlServer.Management.Smo.ConfigProperty c in s.Configuration.Properties)

0 comments on commit 5ca59f8

Please sign in to comment.