constr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\Documents and Settings\Administrator\My Documents\Employee.mdb";Persist Security Info=True";
y it is showing compilation error to me????????????? im doing it with VS-08 c#
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1056: Unexpected character '\'
i have created DB also then also it is showing error
Loading

Ravi ShekharRank #673 · 3.6K reputationPosted Jun 24, 2013, 11:16 PM EDT
constr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Administrator\\My Documents\\Employee.mdb;Persist Security Info=True;"
Mark it as answer if it helped you.
ronak chittora31 reputationPosted Jun 24, 2013, 11:20 PM EDT
Ravi ShekharRank #673 · 3.6K reputationPosted Jun 24, 2013, 11:29 PM EDT
ronak chittora31 reputationPosted Jun 24, 2013, 11:30 PM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Jun 25, 2013, 12:12 AM EDT
you can use ""(two time double quote) instead of "(onr time doubkle qoute)
like
constr =
@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""C:\Documents and Settings\Administrator\My Documents\Employee.mdb"";Persist Security Info=True";hope this will help you
ronak chittora31 reputationPosted Jun 25, 2013, 7:58 AM EDT