I have created a web application which uses Database as MSACCESS, one of the column name in MSACCESS is separated with space something like "Employee Name".
My c# code is failing and not able to read the column name which has space between two words. I cannot change the column name as it was used by many applications.
Can i dynamically add underscore or remove the space in a specific column.
Or can someone suggest the best approach for this.
SELECT
Format([empdate],'mm') AS Month,
Sum([Time]) as MyTime
Format([empdate],'yyyy') as CurrYear
FROM Table
where empName ='" + AND ManagerName='XYZ'
Group by Format([empdate],'mm') ,Format([empdate],'yyyy')
in the query say empdate is emp date and ManagerName is Manager Name - i am getting exception while executing in c#