Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2005

Tip: Looking for answers? Try searching our database.

Database Dependancy Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lasmit - 15 Dec 2005 12:03 GMT
I have a very unusual problem which I would really appreciate some help
with, if anyone has come across something similar before.

Essentially we have three servers, a web server and two database
servers.  There are several applications running on the web server and
the databases for each are distributed across the two servers.  To even
the load it is necessary to move the database for one of the
applications to the other database server.

So,

Database Server A currently hosts the database
Database Server B is where the database should be moved to

The following steps were taken:

1) Detach database on Server A
2) Copy database MDF and LDF files to Server B
3) Re-Attach database on Server A in case rollback is required
3) Attach database on Server B
4) Change application to point at Server B
5) Test application - everything seems fine - can see data appearing in
Server B
6) Detach database from Server A

** The web application is now no longer able to connect to Server B. **

The following steps were then taken:

1) Reboot all three servers
2) Check that the connection string is definitely set in only one place
in the application

The web application is still unable to connect to Server B.

In a further peculiarity, as well as the Web Application there is also
a Windows service which accesses the same database.  This is able to
connect to Server B fine, with or without the database on Server A
being attached.

Many thanks in advance

Lewis
lasmit - 15 Dec 2005 16:47 GMT
After looking further into the issue we were still unable to diagnose
the problem, so we setup a duplicate of the application on the web
server and did some tests.  We could find no problems there and so we
went through with the swap again as we had done originally.

This time it worked fine.

All we can conclude is that something was cached somewhere in IIS and
that rebooting the machine did not clear this cache, but that the cache
cleared naturally after a period of time (it was 6 days between first
attempting the shift and then trying again).

If anyone has any thoughts or theories we would appreciate hearing
them, but in the mean time we just happy that it works :-)

Many thanks

Lewis

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.