更新存储过程的扩展属性
Update Extended Properties of a Stored Procedure
Dummy in SQL 这里需要更新存储过程的扩展 属性。只能找到有关更新 table 内容的信息,而不是属性。
需要从 C# 函数向数据库发送查询。
它应该是这样的;
string query = "Update StoredProcedureName SET caption = 'newValue' WHERE caption = 'oldValue' "
其中 caption 是扩展 属性 的名称。
在这里您可以找到有关如何更新扩展 属性
的信息
https://msdn.microsoft.com/en-us/library/ms186885.aspx
示例:
string query = "EXEC sp_updateextendedproperty ";
query += " @name = N'Caption' ";
query += " ,@value = 'newValue.' ";
query += " ,@level0type = N'Schema', @level0name = dbo ";
query += " ,@level1type = N'Procedure', @level1name = STOREDPROCNAME ";
query += " ,@level2type = N'Property', @level2name = Caption; ";
不如像以前那样将查询发送到数据库
Dummy in SQL 这里需要更新存储过程的扩展 属性。只能找到有关更新 table 内容的信息,而不是属性。
需要从 C# 函数向数据库发送查询。
它应该是这样的;
string query = "Update StoredProcedureName SET caption = 'newValue' WHERE caption = 'oldValue' "
其中 caption 是扩展 属性 的名称。
在这里您可以找到有关如何更新扩展 属性
的信息https://msdn.microsoft.com/en-us/library/ms186885.aspx
示例:
string query = "EXEC sp_updateextendedproperty ";
query += " @name = N'Caption' ";
query += " ,@value = 'newValue.' ";
query += " ,@level0type = N'Schema', @level0name = dbo ";
query += " ,@level1type = N'Procedure', @level1name = STOREDPROCNAME ";
query += " ,@level2type = N'Property', @level2name = Caption; ";
不如像以前那样将查询发送到数据库