Installation problem - SQL Connection failed

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
paulhectors
Posts: 7
Joined: Sat Jul 04, 2009 5:09 pm

Installation problem - SQL Connection failed

Post by paulhectors » Sat Jul 04, 2009 5:21 pm

I am unable to install SourceGear Vault server because during the install the connection to the database fails.

I am not experienced with SQL Server but I have downloaded and installed SQL Server 2005 Express edition. I have checked in the service controller and the SQL Server service has started.

I have tried connecting with Windows Authentication and SQL Server authentication but I get the following error:
"SQL Connection Failed. Unable to connect to SQL.

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

The Vault Server and SQL Server are on the same machine.

Operating system is Win XP SP2 and I am running in a virtual machine using Virtual PC 2007. I am trying to evaluate Vault Server to replace CVS and Sourcesafe at the company I work for.

Best regards,

Paul

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Installation problem - SQL Connection failed

Post by Beth » Mon Jul 06, 2009 8:35 am

Do you have the SQL Server Management Studio Express installed? That's a very helpful tool.

In the path to the SQL server, you will need to enter something like .\sqlexpress or machinename\sqlexpress. Try that and let me know your results. If you have SQL Server Management Studio Express installed, then you can just copy the path used to connect with that tool and use that same path for SQL during the install.
Beth Kieler
SourceGear Technical Support

paulhectors
Posts: 7
Joined: Sat Jul 04, 2009 5:09 pm

Re: Installation problem - SQL Connection failed

Post by paulhectors » Tue Jul 07, 2009 2:42 pm

Thank you for your post.

I installed the Studio Express and connected to the database server.

The solution to my problem was that the text in the installer should be "<computer name>\SQLEXPRESS".

Best regards,

Paul

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Installation problem - SQL Connection failed

Post by Beth » Tue Jul 07, 2009 4:09 pm

Thanks for the update.
Beth Kieler
SourceGear Technical Support

Post Reply