on ‎2012 Nov 26 12:55 PM
I created a Sybase database emp_details using SQL Anywhere and Sybase Central. I had given emp/emp as dba username/password while creating.
The db got created and the files were generated in the given folder.
When I tried running the below script using Ineractive SQL:
use master go if exists (select 1 from master..sysdatabases where name='emp_details') checkpoint emp_details go
It threw the following exception
Could not execute statement. Syntax error near 'checkpoint' on line 2 SQLCODE=-131, ODBC 3 State="42000" Line 4, column 1
Haven't been able to figure out what exactly the syntax issue is and have been stuck up with this for a while.
Any ideas?
Edit: Issue got resolved by installing Sybase ASE. Was able to run the script as it is.
Request clarification before answering.
looks like checkpoint is not allowed inside if..go block, try directly running it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.