public DataTable DMV(String discoverRowset, String restrictions, String properties) { if (discoverRowset.Trim().StartsWith("SELECT ", StringComparison.InvariantCultureIgnoreCase)) { DMVParser.SelectParser sp = new DMVParser.SelectParser(); sp.Parse(discoverRowset); if (restrictions.Length == 0) { restrictions = sp.Restrictions; } return(DiscoverView(sp.FromClause, restrictions, properties, sp.WhereClause, sp.OrderByClause, sp.Distinct, sp.Columns)); } else { return(DiscoverView(discoverRowset, restrictions, properties, string.Empty, string.Empty, false, new string[0])); } }
public DataTable DMV(String discoverRowset, String restrictions, String properties) { if (discoverRowset.Trim().StartsWith("SELECT ", StringComparison.InvariantCultureIgnoreCase)) { DMVParser.SelectParser sp = new DMVParser.SelectParser(); sp.Parse(discoverRowset); if (restrictions.Length == 0) { restrictions = sp.Restrictions; } return DiscoverView(sp.FromClause,restrictions, properties, sp.WhereClause, sp.OrderByClause, sp.Distinct, sp.Columns); } else { return DiscoverView(discoverRowset, restrictions, properties, string.Empty, string.Empty, false, new string[0]); } }