Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#
From: Jens (Traxon_at_gmx.net)
Date: 08/04/04
- Next message: Holger Vorberg: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Previous message: Wilson Thomas: "multiple exe"
- Next in thread: Holger Vorberg: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Reply: Holger Vorberg: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Reply: Stefan Wuebbe: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Reply: Sietse Wijnker: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Messages sorted by: [ date ] [ thread ]
Date: 4 Aug 2004 03:57:10 -0700
Hi,
ich habe das Problem, das es einfach nicht klappt, etwas in mit C#.NET
in eine FoxPro DB zu schreiben.
Auslesen und Durchsuchen ist kein Problem.
Hier ist mal der Code.
OleDbConnection conOleDb = new OleDbConnection();
OleDbCommand commOleDb = new OleDbCommand();
conOleDb.ConnectionString = conString;
try
{
conOleDb.Open();
if(conOleDb.State == ConnectionState.Open)
{
lblStatus.Text = "Verbindung steht";
commOleDb.CommandType = CommandType.Text;
commOleDb.CommandText = "INSERT INTO Test(t_gesamt) VALUES
('99000')"; commOleDb.Connection = conOleDb;
commOleDb.ExecuteNonQuery();
conOleDb.Close();
}
else
{
lblStatus.Text = "Verbindung geschlossen";
}
}
Vielleicht kann mir ja jemand helfen und sagen wo da was fehlt.
Als Fehlermeldung kommt:
Cannot update the cursor TEST, since it is read-only.
Wo fehlt das was?
Was muß anders gemacht werden.
Vielen Dank schonmal für eure Hilfe.
Jens
- Next message: Holger Vorberg: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Previous message: Wilson Thomas: "multiple exe"
- Next in thread: Holger Vorberg: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Reply: Holger Vorberg: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Reply: Stefan Wuebbe: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Reply: Sietse Wijnker: "Re: Probleme beim INSERT-Statement mit eine FoxPro Datenbank und C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|