To get the Instance List from the Microsoft.Practices.EnterpriseLibrary.Data

Hello Friends,
I am using Microsoft Practice Enterprise Library. I have to use lots of Database and all database setting will be stored in to the dataConfiguration.config.
Now i want to read this all database connection setting and want the list of all instances. Can any body help me, its very urgent.

Nilay

[319 byte] By [Nilay] at [2007-12-16]
# 1
Database db = DatabaseFactory.CreateDatabase(“Sales1”);
Database db = DatabaseFactory.CreateDatabase(“Sales2”);
For SQL
SqlDatabase dbSQL = DatabaseFactory.CreateDatabase("Sales1") as SqlDatabase;
SqlDatabase dbSQL = DatabaseFactory.CreateDatabase("Sales2") as SqlDatabase;
you can then access the connection configuration throught the database instance.
BasselBanbouk at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...

.NET Development

Site Classified