> lcSql = "UPDATE nametbl SET name = [" +lcName+ "] WHERE id = 5"
I am not sure about the brackets in SQL Server, but definitely...
lcSql = "UPDATE nametbl SET name = '" +lcName+ "' WHERE id = 5"
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only