Here is my output FROM THE IMMEDIATE WINDOW:
And here is the query executed in Management Studio (and is the same query/stored procedure that put the data in the dt variable):
Why is dt.Select("PWDPermitStatusID = 10") not working?
Code:
dt.Select("PWDPermitStatusID = 1")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 2")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 3")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 4")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 5")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 6")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 7")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 8")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 9")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 10")
{System.Data.DataRow[0]}
dt.Select("PWDPermitStatusID = 97")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 98")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
dt.Select("PWDPermitStatusID = 99")
{System.Data.DataRow[1]}
[0]: {System.Data.DataRow}
And here is the query executed in Management Studio (and is the same query/stored procedure that put the data in the dt variable):
Code:
1 Lost Lost
2 Stolen Stolen
3 Destroyed Destroyed
4 Damaged Damaged
5 Revoked Revoked
6 Deceased Deceased
7 Expired Expired
8 Corrected Corrected
9 Voided Voided
10 Valid Valid
97 RtrndUnDel Returned Undeliverable
98 PrgmReIss Program Re-Issue
99 Other Other
Why is dt.Select("PWDPermitStatusID = 10") not working?