cannot connect to database master
-
Wednesday, May 16, 2012 12:32 PM
Hi,
I am trying to install SP2010 (running through the config wizard) but get the infamous "cannot connect to database master" error.
The sql server in question is SQL Server 2012 (Which is supported).
SP2010 download included SP1
I have opened ports on the SQL Server (even using the script below, which is from MS Support):
@echo ========= SQL Server Ports ===================
@echo Enabling SQLServer default instance port 1433
netsh firewall set portopening TCP 1433 "SQLServer"
@echo Enabling Dedicated Admin Connection port 1434
netsh firewall set portopening TCP 1434 "SQL Admin Connection"
@echo Enabling conventional SQL Server Service Broker port 4022
netsh firewall set portopening TCP 4022 "SQL Service Broker"
@echo Enabling Transact-SQL Debugger/RPC port 135
netsh firewall set portopening TCP 135 "SQL Debugger/RPC"
@echo ========= Analysis Services Ports ==============
@echo Enabling SSAS Default Instance port 2383
netsh firewall set portopening TCP 2383 "Analysis Services"
@echo Enabling SQL Server Browser Service port 2382
netsh firewall set portopening TCP 2382 "SQL Browser"
@echo ========= Misc Applications ==============
@echo Enabling HTTP port 80
netsh firewall set portopening TCP 80 "HTTP"
@echo Enabling SSL port 443
netsh firewall set portopening TCP 443 "SSL"
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
netsh firewall set portopening UDP 1434 "SQL Browser"
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
netsh firewall set multicastbroadcastresponse ENABLEI can ping the sql server, and nslookup (Resolves).
I can login locally to SQL Server 2012 (the OS and actual SQL Server) with both the account I am installing Sharepoint 2010 under and the account I specify in product and configuration wizard. I can expand the master database, too.
I have done everything here (http://blog.sqlauthority.com/2009/08/20/sql-server-fix-error-cannot-open-database-requested-by-the-login-the-login-failed-login-failed-for-user-nt-authoritynetwork-service/) including checking remote connections enabled (they are). Is this an issue with sql server 2012?
Any idea what is wrong?
- Edited by GSS1 Wednesday, May 16, 2012 12:45 PM
All Replies
-
Wednesday, May 16, 2012 6:13 PM
What database roles does the account you are running the configuration wizard have in SQL Server? It should have dbcreator and securityadmin.
If you create and open a UDL file (create an empty file in notepad and save it as test.udl) can you connect to the SQL Server using the account you are using to run the configuration wizard?
- Marked As Answer by Rock Wang– MSFT Saturday, May 26, 2012 7:00 AM
-
Thursday, May 17, 2012 12:14 AM
Hi,
You haven't explained how I would use that udl file. :)
Anyway this problem was resolved, and it was indeed down to networking.
-
Thursday, May 17, 2012 4:19 AM
Hello,
I ran into a similar situation yesterday. My problem was when i installed the SQL server i added an instance called "Sharepoint" my server name was also "Sharepoint" So in the database servername i needed to add "Sharepoint\sharepoint" to specify the instance and then i connected just fine. Hope that helps.
Jpyzowski -- PC Works Plus
- Marked As Answer by Rock Wang– MSFT Saturday, May 26, 2012 7:00 AM

