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
Solved

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

Posted on 2012-03-29
4
408 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
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
TonyReba earned 500 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Incremental load example 2 55
display data in text field from data base for updating 6 65
Query 14 57
SQL Query with Sum and Detail rows 2 54
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…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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