SqlHelperRemoveComments Method |
Removes single line and simple multiline comments from a SQL query
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax public static string RemoveComments(
string query
)
Parameters
- query
- Type: SystemString
SQL query
Return Value
Type:
StringRemarks
Multiline comments with nested comments won't be removed correctly and could cause an invalid SQL syntax
See Also