我正在SSMS中编写sqlcmd来运行其他一些脚本。这是我的脚本。
USE master;
:setvar path "C:\temp\sqlbasics\rollback\"
:setvar currentFile "09 - Create ContactVerificationDetails Table Rollback.sql"
PRINT 'Executing $(path)$(currentFile)';
:r $(path)$(currentFile)
执行时我得到如下错误
A fatal scripting error occurred.
The file specified for :r command was not found.
文件完全按照提及的方式保存..