[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 920
  • Last Modified:

WSS 3.0 - A network-related or instance-specific error occurred while establishing a connection to SQL Server

I am having trouble accessing a site collection in my farm (WSS 3.0)
When I visit the site collection, I receive the following error message:

 
 
An unexpected error has occurred.
Troubleshoot issues with Windows SharePoint Services.
 
 
My Network:

1.  Domain Controller (1)
2.  Database Servers (3)
3.  Web Server

When I do a:

stsadm -o enumsites -url http://mywebapp

I get the following error message, from certain site collections, which I am unable to access:

<Site Error="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)" />


Troubleshooting steps:
1. I am able to telnet to 1433 from other servers, including the web server
2. All services are running as expected

Any and all help is always appreciated!
0
LFoArano
Asked:
LFoArano
  • 6
  • 5
  • 3
1 Solution
 
Yagya ShreeCommented:
Could you please try to perform backup/restore of the site collection from current database in which its residing to a different database in the same web application.

That should fix your problem.
0
 
Rainer JeschorCommented:
Hi,
can you access Central Administration?

Can you verify the configuration for the content databases of the site collections of your web app?

This is either due to firewall blocking the communication or wrong address / instance / port.

HTH,
Rainer
0
 
Rainer JeschorCommented:
Additional questions:
Are all site collections of your web app affected - or only some of them?
Do these site collections have their own content databases?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LFoAranoAuthor Commented:
yagyashree,
I will try to perform a backup/restore. I will let you know momentarily.

Rainer,
I can access the Central Administration since its on a different database server. I can view the configuration for the content databases for the site collections. Additionally, I can telnet to port 1433 without any problems from the web server.
Only site collections whose content dbs are hosted in that particular database server. They do have their own content databases.
0
 
Rainer JeschorCommented:
Hi,
perhaps you might try the following to test the connection:
http://blogs.msdn.com/b/steverac/archive/2010/12/14/test-remote-sql-connectivity-easily.aspx

I think that a backup/restore will not change anything, as the error clearly states that there is no connection (not access denied or anything in regards to permissions).

The only backup/restore that will have an effect is if you switch from one DB server to another - but I think to just check and configure the connection properly is much less work.

Just my 2ct

HTH
Rainer
0
 
LFoAranoAuthor Commented:
Rainer,
Thank you kindly for that tool!
I was able to make a connection to the database server. It appears that the site collection has gone corrupted. I am now creating a backup and a restore, since I can access other site collections within the same content database.

this is very strange... I will close this issue once the restore comes clean
0
 
Yagya ShreeCommented:
Backup/Restore is always a better method of performing troubleshooting for issue related to connectivity/SQL. It would be easier to utilize OOB options to troubleshoot the issue and make sure we are well within microsoft support boundaries.
0
 
LFoAranoAuthor Commented:
why would a site collection within a content database break like this? I'm not sure I understand the problem entirely

thank you!!
0
 
Yagya ShreeCommented:
The error you are getting can have multiple cause to it:

- Master page corruption
-Customizations
-Changes in CSS files

Etc.

If you do google, You would find multiple post related to your error message with different cause mentioned.
0
 
LFoAranoAuthor Commented:
yagyashree,
I can certainly understand that, and I truly appreciate your help.

I am curious as to what may have caused this to happen since noone has administrative access to the servers but me, and no changes were made as far as css files or customization; I can certainly believe that there was a master page corruption issue, but wouldn't that affect the entire farm? I just find it hard to believe that only a selected few Site Collections in one particular content database were corrupted out of the blue.

I hope you share my curiosity.
0
 
Yagya ShreeCommented:
Master pages and CSS files are not specific to server but to site collection.

Any user having Design or higher permission can edit a master page or CSS file of a site collection. {Not at all specifc to farm}
0
 
LFoAranoAuthor Commented:
That did the trick guys, restoring the site collection to a different content database.

Thank you all for your help!!
0
 
LFoAranoAuthor Commented:
Great work!

Thank you Kindly!!!!!
0
 
Yagya ShreeCommented:
Your Welcome. Glad to be help.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 6
  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now