I'm trying to connect to a remote Sql Anywhere 12.01 database with the following code:
My console.log("Connected!") fires so I'm assuming that I've connected to the remote database? However, any query that I make results in this:
I looked through the error codes online and didn't find this one. Anyone know why I may be experiencing it and how I can fix it?
The callback function should take two parameters: err and result. If err is undefined, then the connection succeeded, otherwise it indicates what error occurred. (In the case of connection, result will always be undefined.) Your code should look like this: