Last post Nov 07, 2014 05:16 AM by Mikesdotnetting
Nov 07, 2014 05:10 AM|Microsuresh|LINK
how to write this code when connecting to mysql server.
my error:the name connectionstate does not exist in the current context.
Nov 07, 2014 05:16 AM|Mikesdotnetting|LINK
You need to include
in your file. Note also that C# is case-sensitive. ConnectionState has a capital C and S, and Open begins with a capital too.
if(cn.State != ConnectionState.Open)