cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error near '(end of line)' on line 3

Former Member
0 Kudos

Hi,

I am running 'create table..' or 'select * into..' sql queries in sybase.

No matter how much I change the query, I am getting following error always -

SQL Anywhere Error -131: Syntax error near '(end of line)' on line 3

Appreciate your help. Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

markmumy
Advisor
Advisor
0 Kudos

Post the code please. Without seeing that it is hard to diagnose.

c_baker
Employee
Employee
0 Kudos

Also be careful if you are copying/pasting the script from an editor window on Windows into a dbisql session, etc.  I have had issues with hidden/embedded carriage returns (^M).

Even editing the script in dbisql after will still give errors as there is a ^M still there.

I sometimes will run the script through dos2unix anyway and resolve the issue that way.

(I've also seen this issue in a .cfg file copied from Windows where the ^M hidden after the server name caused startup problems until I ran the .cfg through dos2unix).

Chris

saroj_bagai
Contributor
0 Kudos

you will get this error, if you are either missing closing parenthesis,  or  quotes or semicolon