Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access SQL Server from node.js on Linux

How can I connect to SQL Server or SQL Azure from node.js when running on Linux.

The drivers I found on npm all need Windows + VS2005. Is there anyway to access SQL Server from Linux?

like image 391
Guy Korland Avatar asked Mar 10 '26 23:03

Guy Korland


1 Answers

The mssql package in nodejs can adapt to next drivers:

  • Tedious by Mike D Pilsbury (pure javascript - windows/osx/linux)
  • Microsoft Driver for Node.js for SQL Server by Microsoft Corporation (native - windows only)
  • node-tds by Chad Retz (pure javascript - windows/osx/linux)

It is stated that node-tds and Tedious both work on linux.

like image 168
alandarev Avatar answered Mar 12 '26 12:03

alandarev