简体   繁体   中英

sqlcmd: Native Client 11.0 does not support connections to SQL Server 2000

I'm trying to execute an SQL script using the sqlcmd utility, but it uses the SQL Server Native Client 11.0 and returns the error in the title. In Management Studio, I can connect to the database engine using the Client version 10.0. Is there any way to use version 10.0 using sqlcmd?

Sure, you should have a version 10.0 copy of sqlcmd in the following path:

C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\SQLCMD.exe

(If you don't, then download a version of 2008 Express with Tools and install just the client tools.)

Just call that directly instead of the default one with no path (which will usually default to the most recent version).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM