[MonoDevelop] Error sqliteWindows 8

Olintonatiuh jaobetancourtz at gmail.com
Mon Aug 26 23:47:46 UTC 2013


hello did an application of "mono" with sqlite in debian, and should work
very well but in "windows 8", install Xamarin Studio and opened the source,
ran, and I found a mistake try to open the database data, with sqlitebrowser
and says "File is not sqlite 3 database"
this is my code
			string sql;
			sql="CREATE TABLE usuario(id INTEGER PRIMARY KEY AUTOINCREMENT,nombre
VARCHAR (20),edad INT)";
			SqliteConnection.CreateFile("test.db");
			SqliteConnection con;
			SqliteCommand comm;
			con = new SqliteConnection("Data Source= test.db;version=3;");
			con.Open();
			comm = new SqliteCommand(sql,con);
			comm.ExecuteNonQuery ();
			con.Close ();




--
View this message in context: http://mono.1490590.n4.nabble.com/Error-sqliteWindows-8-tp4660665.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list