Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with insert
Message
From
08/12/2005 04:48:50
 
 
To
18/11/2005 09:17:57
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
OS:
Windows Server 2003
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01070180
Message ID:
01076045
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform