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, 23:32

steveB's gravatar image

steveB
111
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, 03:18) Volker Barth

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

permanent link

answered 10 Jul, 07:34

MarcosCunhaLima's gravatar image

MarcosCunhaLima
3068918
accept rate: 0%

Running "sudo .../sa_config.sh" 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/sa_config.sh (note the "dot space") in the same shell as your application.

(10 Jul, 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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×130
×14
×8

question asked: 09 Jul, 23:32

question was seen: 86 times

last updated: 10 Jul, 08:19