469,951 Members | 2,721 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,951 developers. It's quick & easy.

enterprise Library Configuration

Hello Everyone,

I am trying to add multiple connection strings in my web.config file. I
searched in google to find out how to add multiple connections strings
through enterprise library 2.0 , 2006.
All of them are mentioning that I can go to enterprise Library configuration
and go to file menu and open the web.config file of the existing web
application. I did that,
but when I open the web.config file. I see a tree of
DataAccesApplicationBlocks and under that connectionstrings and then
localSQLServer.
I don't see an application menu under Enterprise Library configurations. How
can I put multiple connection strings in web.config file and I am using
enterprise library 2006, 2.0 version.
Any help will be appreciated
Apr 19 '07 #1
2 1683
On 19 Apr, 05:46, Vinki <V...@discussions.microsoft.comwrote:
Hello Everyone,

I am trying to add multiple connection strings in my web.config file. I
searched in google to find out how to add multiple connections strings
through enterprise library 2.0 , 2006.
All of them are mentioning that I can go to enterprise Library configuration
and go to file menu and open the web.config file of the existing web
application. I did that,
but when I open the web.config file. I see a tree of
DataAccesApplicationBlocks and under that connectionstrings and then
localSQLServer.
I don't see an application menu under Enterprise Library configurations. How
can I put multiple connection strings in web.config file and I am using
enterprise library 2006, 2.0 version.

Any help will be appreciated
Hi, CreateDatabase should have an overload which takes a string, and
you can use that to define multiple sections in your config for
multiple databases. Off the top of my head, just nest your current
connection details in a new named block and use that name in
CreateDatabase.
Cheers

Apr 19 '07 #2
Just to concur.

The overload of .CreateDatabase (string) is where you'll put in the
"instanceName".

Look in the .config file also. THere should be a "defaultInstance" name as
well.

THis is what is used when you call
..CreateDatabase() ; /// no string overload


"DeveloperX" <nn*****@operamail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
On 19 Apr, 05:46, Vinki <V...@discussions.microsoft.comwrote:
Hello Everyone,

I am trying to add multiple connection strings in my web.config file.
I
searched in google to find out how to add multiple connections strings
through enterprise library 2.0 , 2006.
All of them are mentioning that I can go to enterprise Library
configuration
and go to file menu and open the web.config file of the existing web
application. I did that,
but when I open the web.config file. I see a tree of
DataAccesApplicationBlocks and under that connectionstrings and then
localSQLServer.
I don't see an application menu under Enterprise Library configurations.
How
can I put multiple connection strings in web.config file and I am using
enterprise library 2006, 2.0 version.

Any help will be appreciated

Hi, CreateDatabase should have an overload which takes a string, and
you can use that to define multiple sections in your config for
multiple databases. Off the top of my head, just nest your current
connection details in a new named block and use that name in
CreateDatabase.
Cheers

Apr 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by veera sekhar kota | last post: by
2 posts views Thread by bjhogan | last post: by
reply views Thread by John Dalberg | last post: by
3 posts views Thread by bungle | last post: by
reply views Thread by =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.