Sql server 通过SQLCMD实用程序运行sql脚本时出现问题
我有一个脚本,通过sql命令实用程序运行,在一个varchar字段中插入此代码Sql server 通过SQLCMD实用程序运行sql脚本时出现问题,sql-server,sqlcmd,Sql Server,Sqlcmd,我有一个脚本,通过sql命令实用程序运行,在一个varchar字段中插入此代码 <script> $(document).ready(function(){ $(body).css(''margin'',''400px'') }) </script> 错误。有什么问题吗?SQLCMD使用$(…)格式在运行时进行变量替换 您可以使用-x选项关闭变量替换 SQLCMD -x <the rest of your command string> SQLCMD-x
<script>
$(document).ready(function(){
$(body).css(''margin'',''400px'')
})
</script>
错误。有什么问题吗?
SQLCMD
使用$(…)
格式在运行时进行变量替换
您可以使用-x
选项关闭变量替换
SQLCMD -x <the rest of your command string>
SQLCMD-x
有关更多详细信息,请参阅
SQLCMD -x <the rest of your command string>