Skip to content
Advertisement

what is the syntax error in this SQL update query in asp.net c#? [closed]

I am getting error in simple update query for dynamically created table,just can’t understand what the error here is..

c# code:

Error:

An exception of type ‘System.Data.SqlClient.SqlException’ occurred in System.Data.dll but was not handled in user code Additional information: Incorrect syntax near ‘ans’

Advertisement

Answer

You are missing a space after the table name and you have an unnecessary closing parentheses :

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement