Data Management Object Model Reference

SQLStatementUtil.RemoveWhereClause Method 

Removes the where clause and returns the pure select statement

[Visual Basic]
Public Shared Function RemoveWhereClause( _
   ByVal sqlString As String _
) As String
[C#]
public static string RemoveWhereClause(
   string sqlString
);

See Also

SQLStatementUtil Class | SPSSMR.Data Namespace