Run sqlcmd without having SQL Server installed

后端 未结 3 848
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-25 11:29

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.

相关标签:
3条回答
  • 2020-12-25 12:09

    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.

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

    http://www.microsoft.com/en-us/download/details.aspx?id=16978

    Download the file: 1033\x64\SqlCmdLnUtils.msi

    (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.

    0 讨论(0)
  • 2020-12-25 12:12

    There is a free tool "SQLS*Plus" (on http://www.memfix.com ) which is like SQL*Plus for SQL Server.

    Very flexible with data formatting (set lines size, pagesize, etc), variables (&, &&), spool, etc

    Not sure about redistribution rights

    0 讨论(0)
  • 2020-12-25 12:24

    You can download SQLCMD and run as a standalone application. Follow the link.

    Feature Pack for Microsoft SQL Server 2005 - Nov 2005

    0 讨论(0)
提交回复
热议问题