SQLDataAdapter changing value type returned from SQL
问题 In my C# project, I am executing a query against a SQL 2014 database to retrieve Employee data, including a PeriodEnd which is stored in the database as a Decimal (i.e., Nov 17, 2016 is stored as 20161117). The database I am querying is not our product so I cannot change the type to a DateTime field. Here is the SQL script being executed: SELECT DISTINCT e.EMPLOYEE as EmpNo, ch.PEREND As PeriodEnd, ch.PRPOSTSTAT FROM UPEMPL e INNER JOIN UPCHKH ch ON e.EMPLOYEE = ch.EMPLOYEE WHERE ch.PEREND =