J
John W
Hello. I am experiencing a rather odd issue. I am able to both read and
write data to an Access database when my connection string is as follows:
cn = "@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\nwind.mdb;Persist
Security Info=True"
However, I am only able to read the data when the database is added to the
project and the connection string is as follows:
cn =
System.Configuration.ConfigurationManager.ConnectionStrings["WindowsFormsApplication1.Properties.Settings.Database1ConnectionString"].ConnectionString;
Why am I able to read the data using both connections but only able to write
when I use the physical path to the file?
It seems that as soon as I add the database to the project I am unable to
write to it.
Any thoughts?
write data to an Access database when my connection string is as follows:
cn = "@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\nwind.mdb;Persist
Security Info=True"
However, I am only able to read the data when the database is added to the
project and the connection string is as follows:
cn =
System.Configuration.ConfigurationManager.ConnectionStrings["WindowsFormsApplication1.Properties.Settings.Database1ConnectionString"].ConnectionString;
Why am I able to read the data using both connections but only able to write
when I use the physical path to the file?
It seems that as soon as I add the database to the project I am unable to
write to it.
Any thoughts?