Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with insert
Message
De
18/11/2005 09:17:57
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Problem with insert
Versions des environnements
OS:
Windows Server 2003
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01070180
Message ID:
01070180
Vues:
61
hello i've a problem. i've this code:

Public conecion As New OleDbConnection
Public command As New OleDbCommand

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

conecion.ConnectionString = "data source=d:\sog-net\principal\data\general.dbc ; provider=vfpoledb.1"
conecion.Open()
command.Connection = conecion
command.CommandText = "insert into backup (id,descr) values (2,'danny');"
command.ExecuteNonQuery()
conecion.Close()

end sub

but i tr execute that show this problem :

An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll

this message show in command.executenonquery()

how i make to resolve that problem, thak'u
Daniel Vargas.
MCP - Microsoft Certified Professional

"El callar y escuchar es cosa de sabios por ello nuestro grito nace de silencio consciente fuerte y elocuente... vivir de manera diferente es morir siendo libre"

Elkin Ramirez-Kraken

My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform