Hi all,
I am trying to connect to a MS-access 2000 database. I have come from VB background. I used OLEdbConnection control and created the following connection string but C# raises the error "Un-recognized escape sequence".
What can go wrong here?
"cnnStr="Provider=Microsoft.Jet.OLEDB.4.0;Password=;User ID=Admin;Data Source=D:\Inetpub\ Deny None;Extended Properties=;Jet OLEDB:System database=;Jet OLEDB:Registry Path=;Jet OLEDBatabase Password=;Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False";"
Do i really need all of this craps anyways?
any comment will be highly appreciated,
raman
I am trying to connect to a MS-access 2000 database. I have come from VB background. I used OLEdbConnection control and created the following connection string but C# raises the error "Un-recognized escape sequence".
What can go wrong here?
"cnnStr="Provider=Microsoft.Jet.OLEDB.4.0;Password=;User ID=Admin;Data Source=D:\Inetpub\ Deny None;Extended Properties=;Jet OLEDB:System database=;Jet OLEDB:Registry Path=;Jet OLEDBatabase Password=;Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False";"
Do i really need all of this craps anyways?
any comment will be highly appreciated,
raman