SQL Server Connection Problems - sql-server

I just upgraded to a Windows 7 box and installed MS SQL Server 2005 and am trying to open and connect to my local machine using Windows Authentication.
I keep getting 'Cannot connect to CHRISW7O980'. Do I have to start a server locally?

Suggest using this fantastic ServerFault answer to a similar question to help troubleshoot connectivity issues to new instances of SQL Server. There are a few configuration points to check.
Some likely culprits:
W7 firewall allowing SQL Server traffic on 1433.
SQL Server services running?
SQL Server Configuration Manager not allowing TCP connections.
SQL Server Can't Connect

Check in Sql Server Configuration Manager to ensure your instance of SQL Server is running. If not, you can start it and set the Start Mode to Automatic to automatically start it when windows reboots.

Maybe you are running SQLExpress? Try this for the instance name:
Try using .\SQLEXPRESS.

When you installed SQL Server on your local machine, did you install SQL EXPRESS? If so, you may have to use the instance name CHRISW7O980\SQLEXPRESS.
Also, remember that connections over TCP/IP are disabled for newly installed SQL servers. You'll have to enable that in the SQL server manager.

Related

SQL Server Databases missing after installing SQL Server Express

I installed SQL Server 2017 Express as a named Instance alongside my default instance. After rebooting once - both were showing but the I could not connect to SQL Server Express remotely. I then followed the instructions to enable IP on SQL Express using configuration manager and rebooted. Now I can connect remotely but my default instance is showing NO databases!
Also in configuration manager, SQL Server Services does not show any of my instances so that I can check they are running (this was the care even prior to enabling the IP address on the protocol, and when I knew it definitely was running as I could connect to it)
--
Update:
I discovered if I launch SQL Server Configuration Manager 2016 rather than "SQL Server Configuration Manager" I can see all my servers.
SQL Server 2016 appears to be running as is SQL Server Express. There is also a "MSSQLServer" that is stopped - think this may be SQL Server 2012. Not sure at this stage which one had the databases.
Ok so for anyone in a similar situation / panic. Do the following.
Look to see what other SQL Server configuration mangers are showing up. If you have installed multiple versions over the years chances are you'll see more than one.
Try using one of the later ones. You can see the file path too if you need it here.
If you manage to see a list of your database servers, check which are enabled and disabled. I had to disable SQL Server (SQLExpress) first before I could enable SQL Server (MSSQLServer), which in my case referred to SQL Server 2012.
If you want to have SQL Server Express running as a named server running alongside your default server, make sure you assign it a different port number (e.g. 1435) in the SQL Server Network Configuration>Protocols for SQL Express>TCP/IPALL section in SQL Server configuration manager.

Cannot connect to MSSQL Server after recent windows 10 updates

I am not able to connect to remote SQL Server from my machine, I don't know what went wrong but yesterday I was able to connect to remote server.
I can connect through Management Studio from my machine to remote sql server but I cannot connect through SQL Profiler.
Please see below screenshot for more info.
If you faced with this issue after OS upgrade, it should be some environment change.
Check that SQL Server instance written correct and the instance is up (Administration - Services). Then check firewall rules - the easiest way is to temporary turn it off.

Microsoft SQL Server 2008 R2 with TCP/IP Enabled in SQL Server Configuration Manager

I am trying to understand if it is a requirement to install IIS in order to enable TCP/IP communications in SQL Server Configuration Manager with Microsoft SQL Server 2008 R2.
I would prefer to have the database on its own server with TCP/IP enabled, and then IIS w/ PHP on a 2nd server, that points to the database at another IP address. I just want to confirm that IIS is not required in the database server for this functionality to exist.
Thanks.
IIS and SQL Server both are different and can work independently. You don't require IIS to make sure that your SQL Server is working correctly i.e., they both work independently. However if you want then you can configure IIS with SQL Server. You can follow this link to configure it.

SQL Server Express usage with Pentaho (or any non-microsoft product)

I'm trying to connect a local SQL Server database to an ETL utility called Pentaho. Pentaho very easily connects to full versions of SQL server without issue.
I've set mixed mode authentication and created a sql server account for the sql server express instance that can be used to login through SSMS.
When I try to log in via Pentaho, I get errors about it not knowing what the server is, or the server not responding. I've tried {localhost, myip, localhost\SQLEXPRESS, myip\SQLEXPRESS, just SQLEXPRESS} as the server name (and SQLEXPRESS is the instance name).
I know I've had trouble connecting other programs to SQLEXPRESS databases in the past. Can someone tell me why it acts different than when using a full install of SQL Server and how I can get around these differences?
If SQL Server Express is on a different server, have you enabled TCP/IP protocol?

database connection time expired issue

I have a server machine and four client machine for database connectivity.
I installed sqlexpress 2008 in server and one machine and all remaining systems, they have connected the database through the EMS (SQL Manager 2008 for SQL Server ).
The issue is that when I connect the database from that m/c which has sqlexpress 2008 then it gives "Timeout Expired"
But all remaining systems connect to server easily.
Why it gives an error for that particular system.
I didn't get any proper solution for this issue.
It depends on what do you use to connect: Windows integrated security or SQL Server security?
And also, make sure you are connecting to the right instance of SQL Server on server machine (default instance doesn't need to specify the instance name, while for named instances you need to connect to \\
Hope this helps,
Bye
cghersi

Resources