rickyduck
rickyduck

Reputation: 4084

Meteor JS and SQL Server

Is there a simple way for Meteor.js to interact with a SQL Server the same way it does with MongoDB? For example, by using the Node.js MSSQL driver found here: http://www.microsoft.com/en-us/download/details.aspx?id=29995 - however ideally this needs to work in linux.

The closest I have found was tedious - how can I use this, or another alternative, in Meteor?

Upvotes: 10

Views: 10870

Answers (1)

user568109
user568109

Reputation: 48003

You probably have read the meteor docs. You will find it is given there :

The current release of Meteor supports MongoDB, the popular document database, and the examples in this section use the MongoDB API. Future releases will include support for other databases.

So until 'that' future release, you won't have native support for other databases. Your best shot is to use packages that allow you to connect MS-SQL. You can check the packages listed here or search them here. Some of them are:

  1. https://npmjs.org/package/tedious
  2. https://npmjs.org/package/msnodesql
  3. https://npmjs.org/package/tds

Better use one that is popular and more recently updated.

Upvotes: 14

Related Questions