Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in August and this forum will be retired.

I am using node js (sails) and SQL Anywhere 16 for development. After I install node Sql Anywhere driver and follow all step to set up SQL Anywhere environment. (I also install the client software in my mac).it always return Error: Code: -2004 Msg: Can't initialize DBCAPI. However, i can run the dbping command for ping the other server database and return successful . What i missed and how can fix it? Thank you

asked 09 Jul '17, 23:32

steveB's gravatar image

accept rate: 0%

Can't tell on that error, but is there a particular reason you are not using SQL Anywhere 17 which has builtin support for node.js?

(10 Jul '17, 03:18) Volker Barth

Have you run It seems that you library path is not configured. Please, run: sudo /SQLANYWHEREDIR/bin64/ before trying to connect to SqlAnywhere

permanent link

answered 10 Jul '17, 07:34

MarcosCunhaLima's gravatar image

accept rate: 0%

Running "sudo .../" will create a shell, run sudo in that shell, run the script in that shell, and then drop the shell, which means it will have no effect at all. You want to run . <SQLANYWHEREDIR>/bin64/ (note the "dot space") in the same shell as your application.

(10 Jul '17, 08:19) Graeme Perrow
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 09 Jul '17, 23:32

question was seen: 2,531 times

last updated: 10 Jul '17, 08:19