views:

34

answers:

2

hey,

i'am trying to update a row in a table using :

command.ExecuteNoQuery()

it's not giving me an error but it's not updating the row

This is my code :

Dim req As String = "Update Table Set Id= 5"
Dim cmd As New OleDb.OleDbCommand(req, connect())
cmd.ExecuteNonQuery()
disconnect()

thanks

A: 

Make sure that ID isn't an IDENTITY column.

kervin
It's not an identity column.
dotNET
what is your table's name?
kervin
A: 

the problem is that the query was too slow with MS Access.

Now it's working fine MS SQL Server.

dotNET