SQL Server 存储过程不能根据“错误"修改评论部分 [英] SQL Server stored procedure cannot be modified according to "wrong" comment part

查看:32
本文介绍了SQL Server 存储过程不能根据“错误"修改评论部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写这个;我找不到与此标题相关的解决方案,因此决定也在此处编写解决方案.

I'm writing this; I could not found a related solution with this heading and decided to write the solution also here.

有时我们在SQL Server上定义一个新的存储过程时,根据代码中的语法错误"部分无法通过右键单击方法进行修改

Sometime when we define a new stored procedure on SQL Server, it cannot be modified by right click method according to some "Syntax Error" part in the code

存储过程your_procedure"的 TextHeader 中的语法错误.(Microsoft.SqlServer.Smo)

Syntax Error in TextHeader of stored procedure 'your_procedure'. (Microsoft.SqlServer.Smo)

因此,您需要通过sp_helptext 方法获取该过程的代码.

And so, you need to get the code of the procedure by sp_helptext method.

简而言之,在另一个/* */注释部分中必须有一个/* */注释分割部分.(这是我的情况)

In short, there must be a /* */ comment division part in another /* */ comment part. (This was my situation)

如果您知道关于

存储过程的 TextHeader 中的语法错误...

Syntax Error in TextHeader of stored procedure ...

错误?

推荐答案

必须有一个 /* */ 注释分割部分在另一个 /* */ 评论部分.更改主注释部分中的 /* */ 分隔字符串.

There must be a /* */ comment division part(s) in another /* */ comment part(s). Changing / * * / seperated string in the main comment part(s).

这篇关于SQL Server 存储过程不能根据“错误"修改评论部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆