Click here to Skip to main content
15,916,042 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii everyone
How can i solve this problem about connection string
this connection :
VB
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\bin\Debug\org.accdb

give this error :
HTML
Error	1	Unrecognized escape sequence	
Error	2	Unrecognized escape sequence
Posted
Updated 8-Sep-12 8:27am
v2

Hi
Check this
C#
string con= @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\bin\Debug\org.accdb";

Best Regards
M.Mitwalli
 
Share this answer
 
Hi Use double slash(\\) instead of one.
 
Share this answer
 
 
Share this answer
 
Comments
mhassan083 8-Sep-12 14:46pm    
solution 1: this link speak about to assign user and password and not a solution
Kenneth Haugland 8-Sep-12 14:57pm    
I dont iunderstand, could you elaborate?
mhassan083 8-Sep-12 15:19pm    
thanks i'm find the solution by this connection
("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=org.accdb;Persist Security Info=False;")

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900