MySQL Forums
Forum List  »  MySQL for Visual Studio

how to "SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO" on Visual Studio C# command MySqlConnection();
Posted by: Rungrot Chitlamlertkul
Date: September 07, 2015 02:48AM

hi
I'm use mysql on visual studio 2013 c# but I have problem. how to set connectionString. error
Please help me now!

this code:

connectionString = "datasource=" + server + ";" + "port=" + port + ";" + "username=" + uid + ";" + "password=" + password + ";" + "database=" + database + ";" + "charset=utf8;"+"SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO;";

connection = new MySqlConnection(connectionString);

I don't know how to set "SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO" on visual studio but error help me to check

Options: ReplyQuote


Subject
Views
Written By
Posted
how to "SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO" on Visual Studio C# command MySqlConnection();
2199
September 07, 2015 02:48AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.