O'Reilly logo

Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition by David Sceppa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Questions That Should Be Asked More Frequently

Q

Where should I store my connection strings?

A

That’s a bit of a loaded question. Some developers want to separate the connection string from the rest of the application in case they want to reconfigure the connection string without having to change the code in the application. Other developers’ primary goal is to keep the connection information a secret. To see how to accomplish either goal, read the next two Q&As.

Q

How should I store my connection strings to isolate them from the rest of the code in my application?

A

Configuration files are a great way to isolate this information from the rest of your application. They’re easy to create and modify using simple tools. The .NET Framework offers configuration ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required