Click here to Skip to main content
12,444,245 members (43,167 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0 Access
hii everyone
How can i solve this problem about connection string
this connection :
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\bin\Debug\org.accdb
give this error :
Error	1	Unrecognized escape sequence	
Error	2	Unrecognized escape sequence
Posted 8-Sep-12 8:25am
Updated 8-Sep-12 8:27am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
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;")
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hi Use double slash(\\) instead of one.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

Hi
Check this
string con= @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\bin\Debug\org.accdb";
Best Regards
M.Mitwalli
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 9 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100