Gérald Reinhart
11/20/2002 8:46:00 AM
try
{
Microsoft.Data.Odbc.OdbcCommand _SqlCommand = new
Microsoft.Data.Odbc.OdbcCommand ();
_SqlCommand.CommandText = dbEnregistrement.sqlInsert;
_SqlCommand.Connection = this.mConnectionProvider.connection;
_SqlCommand.CommandType = System.Data.CommandType.Text ;
_SqlCommand.ExecuteNonQuery() ;
this.mSortedList.Add( dbEnregistrement.sqlPrimaryKey,
dbEnregistrement );
}
catch (DBEnregistrementException eEnregistrement )
{
throw eEnregistrement;
}
catch ( Exception e )
{
throw new DBException("DBColEnregistrement.dbInsert" , e) ;
}
INSERT INTO communique (id_communique, titre, flux_html,
date_debut_publication ,date_fin_publication, index_ordonnancement, etat,
id_theme, id_sous_theme) VALUES (2, 'dsg', 'dsg', Null, Null, Null, 'sdg',
Null, Null )
{"ERROR [HY000] [Microsoft][Pilote ODBC Microsoft Access] L'opération doit
utiliser une requête qui peut être mise à jour." }