Ask a Question related to ASP.NET Security, Design and Development.
-
Eric Newton #1
Maybe Database connection pools should be managed by Admins instead of Developers using Code?
This would be something that 2003 server and ASP.Net would use, ie, another
section of the IIS whereas you could manage connection strings and such via
a more common admin console, and allow ASP.Net to dole it out to the app via
some static function like
IDbConnection ApplicationInstance.GetDbConnection("key1")
so you would see in an admin console:
[-] AspnetApp1
[-] Database connections
[ ] SqlConnection1
[ ] Type: SqlConnection
[ ] ConnectionString: "server=localhost..."
the key to maintain the XCOPY deployment is to establish a section in
web.configs, defined in the machine.config, of the application db
connections:
<system.web>
<dbconnectionpool>
<dbconnection key="SqlConnection1"
type="System.Data.SqlClient.SqlConnection"
connectionString="server=localhost;uid=sa;pwd=supe rsecretSaPwd" />
</dbconnectionpool>
</system.web>
Now, in your ASPNet apps, or even Data tier projects,
a call to System.Web.Application.GetDbConnection("SqlConnect ion1",
[opened=]true ) would give you a opened IDbConnenction that could be casted
to a SqlConnection [since thats what the app expects]
Is this admin overkill I wonder?
--
Eric Newton
[email]eric@ensoft-software.com[/email]
C#/ASP.net Solutions developer
Eric Newton Guest
-
Multiple Managed Servers and same code base
I have 2 weblogic 8.1 SP4 managed app servers, sitting on one physical machine, pointing to the same code base (CF in general but I am using CF6 as... -
Disconnect connection to database in code
I need to include a statement in my code to "disconnect the connection to the database once you have fetched the data necessary". I researched the... -
database managed space
hi, i am using db2 udb v8.1 for windows 64-bit 1. i try to create a table space on raw device D, i set the size is 4000Mb, when i read help text... -
Security problem with Managed Code calling Unmanaged Code in a Web Page
Hello, I have a web page which contains an ActiveX control (unmanaged) and a Windows Forms User Control (managed). Both reside on a web page and... -
Managed Standby Database Again
I'm setting up Managed standby database between 2 win 2k Version 8.1.7 servers. it all seems to be working well, however I was under the...



Reply With Quote

