Click or drag to resize
SqlHelperRemoveComments Method
Removes single line and simple multiline comments from a SQL query

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax
C#
public static string RemoveComments(
	string query
)

Parameters

query
Type: SystemString
SQL query

Return Value

Type: String
Remarks
Multiline comments with nested comments won't be removed correctly and could cause an invalid SQL syntax
See Also