在 Go 语言中连接到 SQL Server 2014

Lee*_*son 2 sql driver go sql-server-2014

我在 Windows 7 机器上有一个工作数据库连接到 SQL Server 2008 R2 使用:

     db, err = sqlx.Open("lodbc", connString)
Run Code Online (Sandbox Code Playgroud)

导入以下包

     "github.com/LukeMauldin/lodbc"
     "github.com/jmoiron/sqlx"
Run Code Online (Sandbox Code Playgroud)

但是现在使用相同的驱动程序并将连接字符串更改为位于远程 Windows 8 机器上的 2014 SQL Server 数据库,我成功连接但 sqlx 查询中断说

数据源 2015/03/23 09:09:37 http:恐慌服务 127.0.0.1:49346:{IM002} [Microsoft][ODBC 驱动程序管理器] 未找到数据源名称且未指定默认驱动程序

我可以使用其他驱动程序吗?我试过code.google.com/p/odbc和 database/mssql 包,但没有用。

谢谢