This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12650|Reply: 1

[Source] sqlcmd output incomplete solution

[Copy link]
Posted on 3/26/2020 4:39:40 PM | | | |
Found the problem. There are several versions of SQLCMD installed on the machine. Find out which version I use:

E:\Test>where sqlcmd
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\SQLCMD.EXE

I'm using SQL Server 2008 R2 version. I investigated the system environment variable PATH and changed the order, and now it uses SQL Server 2012 version. After changing the path

E:\Test>where sqlcmd
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\SQLCMD.EXE
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE

E:\Test>sqlcmd -S testserver -dTestdb -i StackOverflowSQL.sql

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)
Script Completed With Success - Changes committed on Nov 29 2017  3:37PM




Previous:SQL Server connection string Application Name parameter is explained in detail
Next:asp.net core webapi session cross-domain
 Landlord| Posted on 6/1/2023 7:00:45 PM |
(MSSQL) SQL SERVER executes very large SQL scripts
https://www.itsvse.com/thread-10600-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com