Unten seht ihr nochmal den C# Code. Am Format des Datums kann es nicht
liegen, da ich in anderen Methoden der Klasse das Datum genau so einf�ge.
Ich habe jetzt auch den Namen des Feldes ge�ndert, da TimeStamp tats�chlich
ein reserviertes Wort ist. Wenn ich den SQL Befehl direkt in Access ausf�hre
funktioniert es.
----
public void StoreLocalData(DataSetCategories dsCategories, Country
currentCountry, DateTime LastUpdate)
{
OleDbCommand insertCommand = new OleDbCommand();
insertCommand.Connection = localConnection;
insertCommand.CommandText = "Insert Into CategoryHistory(CountryID,
ZeitStempel, ScannedCategories) VALUES(" + currentCountry.CountryID + ", '"
+ LastUpdate + "', " + dsCategories.Categories.Rows.Count + ")";
localConnection.Open();
insertCommand.ExecuteNonQuery();
localConnection.Close();
}
----
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag von
> Claudius Ceteras
> Gesendet: Mittwoch, 28. Januar 2004 00:54
> An: [EMAIL PROTECTED]
> Betreff: RE: [Coffeehouse] Probleme mit Insert bei Access
>
>
> > W�h!
> > Ich mag diese Datumsformatiererei nicht, bei mir gibt es beim
> > Datum nur ein Textfeld mit der L�nge acht und das Datum im
> > Format YYYYMMDD. Und Basta!
>
> Die ist ja auch nicht n�tig, wenn man es richtig macht... Mit
> parametern... Da muss nichts formatiert werden... Aber als
> Text ist genauso falsch... Rechnen kannste damit n�mlich
> nichts mehr...
>
> Was das problem angeht, so tippe ich darauf, dass timestamp
> ein reserviertes wort ist... Versuchs mit [timestamp]...
> Ansonsten poste nochmal aktuelles sql mit #
>
>
> CLaudius
>
> _______________________________________________
> Coffeehouse mailing list
> [EMAIL PROTECTED]
> http://www.glengamoi.com/mailman/listinfo/coff> eehouse
>
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse