How to connect to SQL Server 2005 database through Ruby

旧城冷巷雨未停 提交于 2019-12-02 07:17:10

问题


How to connect to SQL Server 2005 database through Ruby in Windows


回答1:


I have luck using FreeTDS and TinyTDS on Linux. I prefer that path because messing with ODBC was a pain.

In addition, I recommend using the Sequel ORM, because it helps remove the task of dealing with different flavors of SQL, allowing us to concentrate on programming, not writing queries that are tied to a particular DBM.




回答2:


"Ruby, ADO, and SQLServer" is an example using Ruby and ADO to connect to and query an SQL Server database.

And "Using Ruby & SQL-DMO to Automate SQL Server Tasks" demonstrates how to use Ruby and SQL-DMO to automate server tasks.



来源:https://stackoverflow.com/questions/2026952/how-to-connect-to-sql-server-2005-database-through-ruby

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!