Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

GoDaddy Hosted Website Built in SQL 2005 Not Functioning After Restore from .BAK

Posted on 2012-03-29
4
Medium Priority
?
459 Views
Last Modified: 2012-03-30
Due to some staff changeover, we weren't notified when our Website came up for renewal and GoDaddy killed the site. We've since re-upped on our hosting account and had the site restored but since it was built in SQL 2005 a long time ago, we don't know/have the original SQL credentials. The developers of the site are long gone.

After forking over $150, GoDaddy gave us a .BAK file to use to restore the SQL Server 2005 database to the hosting account. On their account portal we were told to create a new database and then restore the original database over the new one using the .BAK file(s) they restored. We did that and the restore was successful... we see our database files, but nothing works. We assume it's not working because we couldn't match the original SQL credentials with the new ones we created when we started over with the new database that we restored over. If that makes sense.

This is the error we get:


A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

What can we do? Is there a way to match the credentials somehow?
0
Comment
Question by:philodendrin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
TonyReba earned 2000 total points
ID: 37782706
Seems that your website is built on ASP.NET,  have you looked in your web.config file and changed the connection string to the  new sql server???
0
 

Author Comment

by:philodendrin
ID: 37782802
We have not... and you are definitely pointing us in the right direction.

We located the web.config file and here's what's in it (passwords crossed out).

So, what do we match or change? The "initial catalog" user ID and passwords that I crossed out here are different than the login credentials. And what we created within the GoDaddy portal is different from everything in the original file.

 </system.web>
  <connectionStrings>
    <add name="ConnectionString" connectionString="Data Source=p3swhsql-v17.shr.phx3.secureserver.net;Initial Catalog=XXXXX;uid=XXXXXX;pwd=XXXXX"
    providerName="System.Data.SqlClient" />
   
  </connectionStrings>
 <system.web>
    <authentication      mode="Forms">
      <forms name="MYWEBAPP.ASPXAUTH" loginUrl="login.aspx" protection="All" path="/admin/" >
<credentials passwordFormat="Clear">
                    <user name="XXXXXX" password="XXXXXX" />
                </credentials>
            </forms>
    </authentication>
    <authorization>
      <allow users="*"/>
      <deny users="?"/>

    </authorization>
   
  </system.web>
</configuration>
0
 

Author Closing Comment

by:philodendrin
ID: 37785192
I got it figured out. Needed to get the proper Database Connection String to edit the Web.Config file you pointed me to. Thanks for the clue!
0
 
LVL 9

Expert Comment

by:TonyReba
ID: 37787569
Glad you got it working
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are some very powerful Dynamic Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a di…
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question