|
A client has a Windows 2000 server they've been running since around 2000, and finally decided to upgrade. They're making an internal applications server, a testing server, and a front line external facing web server. They have a bunch of ASP Classic pages, several hundred in all, that talk to the database by means of System DSNs. The idea was to be able to repoint the web pages at a different SQL Server if they ever grew to that point, so they wanted to make that possible without having to make code changes. Since ASP Old School doesn't understand the concept of an XML web.config file to store these types of settings in, they choose ODBC DSN as a technology to allow this.
The trouble is there are a few SQL databases on the same server, and different parts and users of different web applications run under different SQL users. For security and testing purposes, because you can give a user select but not update, insert, or delete rights to a table.
Which means they have almost 200 DSNs on this old server, that need to get replicated out to 3 new servers before any of them work. I realize it would probably be easier to change the code, even to use an ini file to store connection strings, but the client feels that's "an unjustifiable risk" at the same time they're bringing these new boxes online and retiring an older one. What kills me is they agree they need to change the code anyway, but want to do the work first before making the work unnecessary.
I always thought DSNs were DSN files, stored under \Windows\System or somewhere like that. I could have sworn. But it turns out they're in the registry. Can we just migrate a registry hive, or does it need to be more involved? Has anyone ever tried anything like this?
|