1. FreeTDS(TDS协议的一种开源实现方式)
FreeTDS is a set of libraries for Unix and Linux that allows your programs to natively talk to Microsoft SQL Server and Sybase databases.
Technically speaking, FreeTDS is an open source implementation of the TDS (Tabular Data Stream) protocol used by these databases for their own clients. It supports many different flavors of the protocol and three APIs to access it. Additionally FreeTDS works with other software such as Perl and PHP, providing access from those languages as well.
If you are looking for a Java implementation, we refer you to the jTDS project on SourceForge.
注意: 没有说FreeTDS支持windows, 也没有说可以访问mysql或oracle.
2. tiny_tds(可以理解为FreeTDS的ruby版本实现, java版本的实现叫jTDS)
TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
The TinyTDS gem is meant to serve the extremely common use-case of connecting, querying and iterating over results to Microsoft SQL Server databases from ruby. Even though it uses FreeTDS’s DB-Library, it is NOT meant to serve as direct 1:1 mapping of that C API.
The benefits are speed, automatic casting to ruby primitives, and proper encoding support. It converts all SQL Server datatypes to native ruby objects supporting :utc or :local time zones for time-like types. To date it is the only ruby client library that allows client encoding options, defaulting to UTF-8, while connecting to SQL Server. It also properly encodes all string and binary data. The motivation for TinyTDS is to become the de-facto low level connection mode for the SQL Server adapter for ActiveRecord. For further details see the special thanks section at the bottom
注意: tiny_tds可以用于windows
分享到:
相关推荐
在Ruby中连接到Microsoft SQL Server数据库,你可以使用tiny_tds或者odbc等gem。附件是使用tiny_tds gem的一个基本示例 ...注意,tiny_tds gem依赖于FreeTDS库,所以你需要确保你的系统上已经安装了这个库。
TinyTDS gem旨在满足使用FreeTDS的DB-Library API将结果从Ruby连接,查询和迭代到Microsoft SQL Server或Sybase数据库的极其普通的用例。 TinyTDS提供对Ruby原语的自动转换以及适当的编码支持。 它将所有SQL ...
本文将详细讲解如何配置Ruby环境以便访问SQL Server数据库,主要涉及两个关键组件:FreeTDS和Tiny_TDS。 首先,FreeTDS是一个开放源代码的库,它允许Unix和Linux系统连接到SQL Server或Sybase数据库。为了安装...
3. `lib/`目录:包含TinyTDS库的核心代码,如`tiny_tds.rb`和其他模块文件。 4. `test/`目录:测试用例,用于验证代码功能的正确性。 5. `examples/`目录:可能包含一些示例代码,展示如何使用TinyTDS库。 6. `...
bundle install(如果tiny_tds模块安装不上可能是缺少系统组件,先安装freetds) kali系统使用apt-get install freetds-dev 命令安装 使用 爆破方式 IP以及IP列表(例如192.168.1.1-192.168.1.100或者CIDR格式) 单个...