title: vb.net: Checking SQL Server status
body: <p>Sometimes when my customers turn on or restart their computer, and open my vb.net application directly, the application opens before SQL Server has started completely. </p>
  
  <p>This results in many unexpected behaviors. To avoid this situation, I need to start a splash screen and check the SQL Server state within it, and only when SQL Server state indicates that it is loaded completely, can I run the whole application.</p>
  
  <p>The question is: how to check the SQL Server state, whether it is finished loading or not? The whole SQL Server, not the database.</p>