Skip to content

Instantly share code, notes, and snippets.

@c1982
Created January 17, 2012 11:39
Show Gist options
  • Save c1982/1626359 to your computer and use it in GitHub Desktop.
Save c1982/1626359 to your computer and use it in GitHub Desktop.
is exists sql server process in local machine?
public bool SqlServerIsUp()
{
return Process.GetProcessesByName("sqlservr").Any();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment