Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can anyone give me a sample codes of Updating database fields
using sql commands or any in VB.Net or VB 2008...??

thanks for d help... i really need it badly..,,

regards...:thumbsup:
Posted

There are lots of them over internet, should have searched before asking.

Here are a few :
http://www.c-sharpcorner.com/UploadFile/sudhakarjalli/BasicDbOpsSJ12012005005442AM/BasicDbOpsSJ.aspx[^]
http://vsnetdatabinding.blogspot.com/[^]

:)
 
Share this answer
 
Thanks for links Mr. Sur...

actually i already search codes for updating but some of
them are not working... and really don't understand yet
the functions..
but thanks for d help.. i'll try if this is working...

god bless!
 
Share this answer
 
first u need to add text fields according to your Columns

now write the insert Command

Dim strQuery as String = "Insert into TableName Values(textbox1.text,textbox2.text)"

define a SqlCommand

dim cmd as new SqlCommand(strQuery,Connection)
cmd.executenonQuery

that's all
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900