C # window forms: → Database: access
I made a request similar to this
Select * from Emp where E_Name Like 'Alok*??????'
the above query is for retrieving records that have Alok and 6 charachter .
If I execute this request on access, it works fine and retrieves the record, but when I try to use it in C #
Select * from Emp where E_Name Like 'Alok*??????'
or
Select * from Emp where E_Name Like 'Alok%??????'
Both of them do not work, and I also tried using both types of connection strings
Microsoft.ACE.OLEDB.12.0;
AND
Microsoft.Jet.OLEDB.4.0;
How to solve this problem?
source share