在没有安装SQL Server的情况下运行sqlcmd [英] Run sqlcmd without having SQL Server installed

查看:91
本文介绍了在没有安装SQL Server的情况下运行sqlcmd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个调用 sqlcmd 的Java程序.它在安装了SQL Server的计算机上完美运行,但在没有安装SQL Server的计算机上则完全不起作用.我想包括必要的exe和dll文件,以便在我的jar中运行此命令.有人知道我需要哪些吗?我已经包含了batchparser90.dll,sqlcmd.exe和sqlcmd.dll.仍然没有用.

I'm working on a Java program that is calling sqlcmd. It works perfectly on a computer with SQL server installed, but not at all on a computer that doesn't. I want to include the necessary exe and dll files to run this command in my jar. Anyone know which ones I need? I already included batchparser90.dll, sqlcmd.exe, and sqlcmd.dll. It still didn't work.

任何建议都值得赞赏.预先感谢!

Any suggestions are appreciated. Thanks in advance!

推荐答案

尽管对于原始发布者来说可能为时已晚,但为了将来参考,SQLCMD是可免费下载的,因此无需为此目的明确购买SQL Server.大概用户具有带有CAL的SQL Server,否则他们一开始就不需要SQLCMD.

Although it's probably too late for the original poster, for future reference, SQLCMD is freely downloadable, so it's not necessary to purchase SQL Server explicitly for this purpose. Presumably the user has SQL Server with CALs or they wouldn't need SQLCMD in the first place.

无论如何,在我输入以下内容时,2008 R2下载都在这里:

In any event, the 2008 R2 download as of my typing this is here:

http://www.microsoft.com/zh-我们/download/details.aspx?id=16978

下载文件: 1033 \ x64 \ SqlCmdLnUtils.msi

(编辑2013-05-01)请注意,这是一个相对较旧的版本-请参阅注释以获取更新的链接,或

(EDIT 2013-05-01) Please note this is a fairly old release at this point - see the comments for updated links, or search the Microsoft Download Center for "Microsoft SQL Server Feature Pack" and pick the release that you prefer - the most recent or the one that matches your SQL Server version in use, as you see fit.

这篇关于在没有安装SQL Server的情况下运行sqlcmd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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