Incorrect syntax near go Sybase
Incorrect syntax near go Sybase
This is very weird exception if you are working with Sybase database while executing script to the database.
Solution: This happens if you have space in “GO” statement in your file. As certain statement in Sybase must be in the first position in the SQL file and “GO” is one of those statement. So be careful while putting script into the file for execution check spaces as an example below:
GO –> This has space will cause problem
GO –> Will work