Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with insert
Message
De
08/12/2005 04:48:50
 
 
À
18/11/2005 09:17:57
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
OS:
Windows Server 2003
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01070180
Message ID:
01076045
Vues:
17
Hi Daniel,
Thats happen because you have fields which does not accept .null. values
Try next

Command.CommandText = "SET NULL OFF"
Command.ExecuteNonQuery()
Command.CommandText = "insert into backup (id,descr) values (2,'danny');"
Command.ExecuteNonQuery()

It works
Denis




>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform