Skip to content
Advertisement

Tag: database-connection

Connect to local database on other computers

How can I use my LocalDB on other computers? I tried this but it doesn’t work because I get this error: Local Database Runtime error occurred. Cannot create an automatic instance Does someone know how to fix this, or what I can do instead? I don’t want to use SQLServer because I am making a program for an offline computer.

Accessing database connection string using app.config in C# winform

I can’t seem to be able to access the app.config database connection string in my c# winforms app. app.config code C# code: When I try the C# code, I get a message: Warning 1 ‘System.Configuration.ConfigurationSettings.AppSettings’ is obsolete: ‘ This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings’ However, when I try to use: I get an error: Only assignment,

Advertisement