Jun 3, 2002 #1 dky1e Programmer May 4, 2002 293 US Is there a cleaner way to test whether sqlConnection is open? if( sqlConnection.State.ToString().Equals( "Open" ) ) Because this looks ugly thanks.
Is there a cleaner way to test whether sqlConnection is open? if( sqlConnection.State.ToString().Equals( "Open" ) ) Because this looks ugly thanks.
Jun 4, 2002 Thread starter #2 dky1e Programmer May 4, 2002 293 US I found it. if( sqlConnection.State == ConnectionState.Open ) Looks ALOT better! Upvote 0 Downvote