|
-
Oct 17th, 2002, 10:04 AM
#1
Thread Starter
New Member
change the loaction of the database without re-programming the web-application!?!
how do i allow the the database server (which may be on a different server to the web server) be able to change without re-programming of the web application?
at the moment i have a global.asax:
Code:
<%@ Import Namespace="System.Net" %>
<script runat="server">
Sub Session_OnStart()
Session("conClasf") = _
"Data Source=localhost;Integrated Security=SSPI;" & _
"Initial Catalog=Database"
Try
Session("hostname") = _
Dns.GetHostByAddress(Request.UserHostAddress).HostName
Catch ex As Exception
Session("hostname") = Request.UserHostAddress
End Try
End Sub
</script>
?
bernie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|