Skip to content
Advertisement

Cannot execute SQL query

I have the following code to execute a SQL query in vb.net :

When I run the query I get a message :

Incorrect syntax near ‘(‘

I cannot see on which line the error occurs.

The query works in SQL Server Management Studio.

What am I missing in VB.net?

Regards

Advertisement

Answer

You have open and close parentheses "Update() t1 " & in between your update scripts. I suggest to have a separate call on your 2nd udpate.

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