Let's suppose I have $objTable, a SQL Server table object, with 3 columns:nUnitType_IdcE_DescritpioncF_DescriptionI swear that at one point a few months ago, this bit of code was returning $DescCols containing the expected 2 columns, but for the life of me I can't get it to work now... What am I missing here?[code="plain"]$DescCols = $objTable.Columns | ?{(($_.Name).Substring(0, 3) -like "c[EF]_*") ` -and ((group ($_.Name).Substring(3)).Count -eq 2)} $DescCols[/code]Thanks!
↧