Chris_871 Level: Master

 Registered: 30-11-2002 Posts: 106
|
Re: database connection
Hi
To update a table , you have to pass the commandtext and then use ExecuteNonQuery().
Here is the sample piece of code.
commandobject.CommandText = "update mShipper set cnno = cnno+1 where shippercode = '2005'"
adapterobject.UpdateCommand = dbconn.VBC_comm
commandobject.ExecuteNonQuery()
Note : You mush create connection object , command and adapter object.
Regards
Chris
|