如何从红帽6.4通过Node.js的连接到SQL Server [英] How to connect to SQL Server from Red Hat 6.4 via Node.js

查看:143
本文介绍了如何从红帽6.4通过Node.js的连接到SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我发展我的本地薄荷Linux机器上Node.js的web应用程序,并通过该节点模块的 MSSQL 。现在一切都很好。

Currently I am developing the Node.js web app on my local Mint linux machine, and connect to a local SQL Server 2008 (express) via SQL Server Authentication by using this node module mssql. Everything is fine now.

但现在我需要将应用程序部署到红帽6.4(64位)机和SQL Server 2008 R2。我被赋予了Windows身份验证的方式来访问SQL服务器。我可以通过的Microsoft SQL Server Management Studio中使用Windows身份验证,以查看数据库和创建表。但是,我怎么能在Red Hat连接的应用程序通过Node.js的SQL服务器?

But now I need to deploy the app to a Red Hat 6.4 (64bit) machine and SQL Server 2008 R2. I was given a Windows Authentication way to access the SQL Server. I can use the Windows Authentication via the Microsoft SQL Server Management Studio to see the database and create tables. But how I can connect the app on Red Hat to the SQL server via Node.js?

我已经安装了这个 MS ODBC驱动程序11为SQL Server 红帽服务器上。应该采取什么下一步行动是什么?或最佳实践。

I have installed this MS ODBC Driver 11 for SQL Server on the Red Hat server. What should the next move be? or best practise.

推荐答案

我刚刚成功地连接到SQL Server从Ubuntu 14.04。

I just successfully connected to the SQL Server from Ubuntu 14.04.

我用freetds的作为驱动程序,unxiODBC作为驱动程序管理器,节点ODBC作为Node.js的模块来连接。

I use FreeTDS as the driver, and unxiODBC as the driver manager, node odbc as the Node.js module to connect.

更多信息,请参见此链接

但我需要做更多的研究,想知道如果我可以使用节点模块MSSQL连接。 MSSQL使用TDS或驱动程序繁琐。

But I need to do more research, wondering if I can use the node module mssql to connect. mssql uses tds or tedious as drivers.

这篇关于如何从红帽6.4通过Node.js的连接到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆