Solved

Failed to connect to database (Configuration Wizard)

Posted on 2007-11-19
12
1,663 Views
Last Modified: 2012-06-22
Hi,

I've installed a search server 2008 express in the virtual machine(VMWare), and ran the configuration wizard.
I'm trying to connect to an existing SQL server 2005 express(which is run at host) to create a new config db

I supply the instance name ("lindy\sqlexpress") and credentails
("domain\sqladmin") but keep getting "Failed to connect to the database
server" (see full error below). SQL instance is up and runining, SQL
managment studio installed on the search server 2008 machine (virtual machine) has no problem to connect to
the same instance located on host.


The error message:

---------------------------
SharePoint Products and Technologies Configuration Wizard
---------------------------
Failed to connect to the database server or the database name does not
exist. Ensure the database server exists, is a Sql server, and that you have
the appropriate permissions to access the database server. To diagnose the
problem, review the extended error information located at C:\Program
Files\Common Files\Microsoft Shared\Web Server
Extensions\12\LOGS\PSCDiagnostics_12_20_2006_17_10_44_859_1832613818.log.
Please consult the SharePoint Products and Technologies Configuration Wizard
help for additional information regarding database server security
configuration and network access.
0
Comment
Question by:mtdzgl
  • 5
  • 4
12 Comments
 
LVL 18

Expert Comment

by:Yveau
ID: 20318387
Did you enable the network protocols via the Configuration wizrd for that instance ?
By default you cannot connect from the network to a SQL Server 2005 instance.

Start | Programs | Microsoft SQL Server 2005 | Configuration Tools | SQL Server Configuration Manager
open the Network Configuration folder, click on Protocols for <instance name> and enable the TCP/IP and Named Pipes protocols. Restart SQL Service (as told in the popup) and your back in business.

Hope this helps ...
0
 

Author Comment

by:mtdzgl
ID: 20318475
Thanks! But I've enable the TCP/IP and named Pipes protocals, i.e. the SQL 20005 express remote access is enable. I can connect the instance by SQL managment studio installed on the search server 2008 machine. But it isn't ok by the SharePoint Products and Technologies Configuration Wizard.
0
 
LVL 18

Expert Comment

by:Yveau
ID: 20318820
Can you run a trace on the SQL Server to see what connection attempt is made ?
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:mtdzgl
ID: 20325098
Thanks! Could you please tell me how to run the trace on the SQL server?
The SQL server is installed on host, the sharepoint service and search server 2008 are installed on virtual machine. Sometimes it failed if visit host through virtual machine.  Maybe it is the problem. But It is strange that SQL manage studio run at virtual machine is ok to visit SQL server.
0
 
LVL 18

Expert Comment

by:Yveau
ID: 20326064
From a machine that can connect to the SQL Server and has the tools installed, run SQL Profiler (Start | Programs | Microsoft SQL Server 2005 | Performance Tools | SQL Server Profiler)
Connect to the SQL Server and create a new trace (from a blank template) and go to the events tab. Scroll to the Security Audit and open the folder. Mark the items 'Audit Login', 'Audit Login Failed' and 'Audit Logout'. Start by clicking Run.

Now you will see a list of all successful logins, failed logins and logout events.

Try to connect from the app's and see what the trace is showing you ... and tell us, so we can help you from there on.

Hope this helps ...
0
 

Author Comment

by:mtdzgl
ID: 20326175
I installed the SQL server 2005 express which is free version. Maybe no trace function. Anyway, thanks a lot!
0
 
LVL 18

Expert Comment

by:Yveau
ID: 20330323
... is it working now ?
0
 

Author Comment

by:mtdzgl
ID: 20338695
I'm troubleshooting. I will get back to you if it works. I think it is the virtual machine problem.
0
 

Author Comment

by:mtdzgl
ID: 20342578
maybe it is impossible mission that remote connect the database for sharepoint service.
I run the SQL server express same with Search Server express. it is ok now.
0
 

Accepted Solution

by:
mhdhallak earned 125 total points
ID: 21988990
try this Programs --> SQL SERVER 2005 -->Config Tools --> SQL Server 2005 Surface Area Configthen Surface Area Config for Services and Connections, Go to the specific SQL instance (SQLXYZ for example) and allow the remote connection
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ESXI and proactively monitoring hard drive health? 3 79
Accessing two networks from one PC 30 115
Cannot take ownership of a folder 8 47
Migrating a Linux server to VMware 3 63
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

830 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