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.