my current sql command is like -> 

but it could not read it and have error saying " invalid column name "exp : xxx"
but this is happen only to String updates not for my update for integer with the same codes..i'm using microsoft visual studio (vb.net) and sql server management studio..can anyone help

Jignesh TrivediPosted Aug 10, 2015, 11:50 PM
Hi,
I think you need to put single quote (') before and after your string value.
so code becomes
Query = "UPDATE [MISInventory].[dbo].[AddItem] SET vendorr = '" & TextBox3.Text "' where Id = " & value
hope this will help you.
Raja TPosted Aug 10, 2015, 9:36 PM
For updating with string using please check bellow URLs
http://www.aspsnippets.com/Articles/Using-Parameterized-queries-to-prevent-SQL-Injection-Attacks-in-SQL-Server.aspx
http://vb.net-informations.com/ado.net-dataproviders/ado.net-sqlconnection.htm
https://support.microsoft.com/en-us/kb/308055
http://www.dreamincode.net/forums/topic/54489-sql-update-statement/