SQL Server 2008 R2 set up server issue - sql-server

Firstly apologies if this appears a really dumb question but after installing SQL Server 2008 R2 I can't actually use it and keep getting the below message:
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) (Microsoft SQL Server , Error: 2)
I've tried googling how to set up a server for SQL Server 2008 R2 but the search results keep going to about SQL Server, not how to get it working!
To confirm I know how to use SQL Server 2008 R2 after the data is in it but I've never been involved with setting up a server and how to get it linked into SQL. I don't know how to set up the server. I thought I'd be able to just use my hard drive?
Any help would be really welcomed :)
Thanks in advance.

Related

SQL Server connection error when trying to import from another DB on server

SQL Server 2014 Express is installed on a VM Windows Server 2016. There are several databases attached and when trying to import a table from one DB into another on the same server, I got the following error message:
Login timeout expired
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. (Microsoft SQL Server Native Client 11.0)
I can log onto SQL Server and run queries as per normal which includes joining tables from different databases but just can't export/import data within SQL Server using the import/export data wizard.
I have double checked that the server name is spelt correctly.
The export/import wizard has been working fine until about a week ago and there have not been any changes made to the configuration.
When trying to troubleshoot I tried to find the SQL Server Browser service in the SQL Server configuration manager was unable to. Not sure if this is relevant there is also SQL Server 2016 installed on the same VM and I do not see the SQL Server Browser server for this either but the Export/Import Wizard runs OK between the various databases on SQL Server 2016
Many thanks

SQL Server Management Studio 2014 IS ALREADY INSTALLED HOW CAN I RESOLVE THIS ISSUE?

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: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)
SQL Server Management studio is a client to connect to the SQL Server.
Please tell us which instance you decided to connect, it is in the local machine or remote machine.
Besides please check the server name you input in the box is correct and the SQL Server service is running.
You can check the SQL Server service via the Sql Server Configuration Manager.

No instance created by SQL Server 2008 R2

I have a problem with SQL Server 2008 R2, when I try to connect to server it gives me the following message:
TITLE: Connect to Server
Cannot connect to (local).
ADDITIONAL INFORMATION:
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)
(Microsoft SQL Server, Error: 2)
I found a couple of solutions for this, one of which told me to go the configuration manager and check the instance created by SQL Server. There was none. I found only this:
I need to learn SQL Server for a job, and I don't know what to do.
-- UPDATE --
I reinstalled SQL Server 2008 and some errors might have something to do with my issue..
errors in reinstalling
note: the first time I installed I was basically clueless, I might had the same errors before and I simply didn't notice..
This seems you only install SQL Server Management studio not whole SQL Server DBMS so you need to install SQL Server and then try again.To check that SQL Server is installed on my PC or not You can follow these Steps
1.In Window Run Type `services.msc`
2.Check that SQL Server Service is present or not
3.If Present Then Check in Running Mode or not.
4.if not here still SQL Server is not installed
Hope this helps you
You need to install SQL server and SQL Server studio management tool. Seems you are trying to install SQL Server 2008.
Go to this link and download the version of SQL Server 2008 you are after
32 or 64 bit
https://www.microsoft.com/en-au/download/details.aspx?id=1695
Then install a Microsoft SQL Server 2008 Management Studio.
https://www.microsoft.com/en-au/download/details.aspx?id=7593
If you have windows 8.1 and upwards you can install the newer version of MSSQL which comes with Management studio. https://www.microsoft.com/en-us/sql-server/sql-server-downloads.

Localdb in Visual Studio 2015 error 52 (SQL Server)

I programmed an application with an attached .mdf database file that works fine on my computer. But on another computer (client PC) I get this error message :
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: SQL
Network Interfaces, error: 52 - Unable to locate a Local Database
Runtime installation. Verify that SQL Server Express is properly
installed and that the Local Database Runtime feature is enabled.)]
System.Data.SqlClient.SqlInternalConnection
Should I install SQL Server Express on my client PC? It's just impossible, can you please help ?
Thanks in advance
If you want to use a .mdf SQL Server database file, you must install at least SQL Server Express on that machine - or put the database on a SQL Server instance in the network the PC is connected to and use the database on the server.
You cannot use a .mdf database file totally without installed SQL Server - SQL Server is not an embedded database that works without installation. If you require such a database, look at SQLite, SQL Server CE (Compact Edition) or something like RavenDB. Those can be embedded (as a set of DLL's) into your solution and work against files on disk without need of installing a server component on the machine where they run.

Error connecting to SQL Server instance

I already have SQL server 2008 R2 on my system. I also installed SQL server 2012 express. Then, I uninstalled it and installed SQL server 2012 commercial edition. I cannot connect to my DB via management studio. These weird errors happen to me all the time - 2005, 2008, 2012. The numbers change. TCP/IP is enabled, service is enabled. I just want to be able to connect and put some test databases for learning.
Please help me to fix the error below -
Cannot connect to SuperPC\SQLEXPRESS.
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
Make sure that the SQL Server Service is running. Go to services from start menu, and see SQL Server, if it's not running just right click and select Start.
When you uninstalled SQL Express you removed the SuperPC\SQLEXPRESS instance of SQL from your system. You will need to use a different SQL instance name. You would have set this name in the 2012 commercial version installation.
If the SQL 2008 R2 instance is the default instance on your system then the commercial SQL 2012 instance would have been installed as a named instance and you'd need to connect to it using the instance name you indicated during installation. You would connect to it using SuperPC\[new instance name] where you replace [new instance name] with the name of the instance you set during installation.
If the SQL 2008 R2 instance is not the default instance, then the new SQL 2012 instance MAY have been installed as the default instance, in which case you just connect to it using SuperPC. It COULD still have been installed as a named instance in which case you would need to follow the directions in the above paragraph.
EDIT:
Based on your comment on your question, try connecting with SuperPC\Sql2012.

Resources