Bonjour à tous,
Je suis actuellement sur la réalisation d'une base de donnée en C# en utilisant SQLite. Bien évidemment, j'arrive au moment où "ya un truc qui marche pas et que je pige pas".
Pour Info ==> C# Express 2010 et SQLite
Je m'explique en vous montrant le bout de code :
try
{
SQLiteConnectionStringBuilder SQLCSB = new SQLiteConnectionStringBuilder();
SQLCSB.DataSource = "mediatheque.db";
SQLCSB.FailIfMissing = false;
SQLCSB.Password = "Boujour";
string ConnectionString = SQLCSB.ToString();
SQLiteConnection SQLC = new SQLiteConnection(ConnectionString);
SQLC.Open();
SQLiteCommand SQLCmd1 = SQLC.CreateCommand();
Console.WriteLine("A");
SQLCmd1.CommandText = "Select (Nom, Prenom) FROM Adherents Order By (Nom);";
Console.WriteLine("A");
SQLCmd1.ExecuteNonQuery();
Console.WriteLine("A");
SQLC.Close();
}
Et voilà l'erreur propre au SQLite :
"SQLite error near "," : Syntax error"
Merci d'avance pour vos réponses
Cho7sale
Afficher la suite