How to get the connection string from a text file

G

Guest

The company I work is considering to use the Enterprise Library
(january/2006) Data Data Access Application Block. The problem is an internal
policy that forces all company systems to get the connection string from a
text file that already exists in the network.

Is there any way to just pass the connection string to the Data Data Access
Application Block instead of getting it from the app.config or web.config?

I belive I´ll have to implement this functionality, so any help on where to
start would be great.

Thanks for any help.
 
B

Bruno Piovan

Fábio,
an alternative would be by using the classes OracleDatabase or SqlDatabase
accordingly to the db you are using, there is a constructor that takes the
connection string as a parameter for both classes.

Bruno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top