Why there is no any Sql Server in Add Connection list - sql

I use Microsoft Visual Studio 2010 Professional (I installed all components).
Here is what I'm trying to do. I create a new ASP.NET project. Then I open Server Explorer (View->Server Explorer), right click on Data Connections and choose Add Connection. Then I choose Microsoft SQL Server and press Continue, but the 'Server name' list is empty.
I launch Sql Server Configuration Manager and it shows that SQL Server is in running state (Agent and Browser are stopped)
Why there is no any Sql Server in Add Connection list?
--------------------------------------------------------------
I allow remote filestream for SQl Server, so no I can choose server in the list, but when I enter new database name and click Ok I get a error "sql server was not found or was not accessible"
--------------------------------------------------------------
Here is a list of installed programs with 'SQL' filter

Have you configured SQL Server to allow remote connections? By default, SQL Server Express Edition and SQL Server Developer Edition do not allow remote connections.
For SQL Server 2005:
How to configure SQL Server 2005 to allow remote connections
For SQL Server 2008:
From start menu of SQL Server 2008, run SQL Server Configuration Manager.
From left side view of SQL Server Configuration Manager, expand SQL Server Network Configuration.
In the right view, you will see the list of SQL Server protocols. By default only Shared Memory is enabled. Enable the other protocols to get your SQL server to accept connections over the network.
Your problem appears to be that you have more than one SQL Server instance installed locally. You will need to use the fully qualified name.

Related

Sitecore - Installation Database Server

Trying to install Sitecore 7.1 on local machine but getting an error while attempting to connect to SQL Server. If I browse for a Database Server nothing comes up in the list. I have SQL Server 2012 installed and several databases that were created from Visual Studio. What am I missing to make the connection?
For some it may be a case of the SQL Server Service has stopped running. To turn it back on:
Open up Sql Server Configuration Manager.
Select SQL Server Services in the tree view on the left
In the Context Window on the right check to see if your SQL server service is turned off.
If it is right click and click start.

How to connect in sql management studio 2008

I have installed the Sql server 2008 express edition with tools. After Installing sql server 2008 and sql server management studio. When i open the sql management studio it shows a window, Connect to server. Here I got already filled boxes like that:
Server type: Database Engine
Sever name: (local)
Authentication: Windows Authentication
When i click on the Connect button it displays an error message box, and nothing will be created. What can i do. Would someone help me to fix it.
Open run--> CMD
execute this code : NET START MSSQLSERVER for default instance and NET START MSSQL$<INSTANCENAME> for named instance.
I agree with user2196728, you should be able to connect using the SA account specified during installation. At that point you should be able to setup an account using your domain account (windows authentication)
Confirm that this is turned to on (2008R2):
Click on the Start Menu.
Go to the folder Microsoft SQL Server 2008 R2
Click on the folder Configuration Tools
Launch SQL Server Configuration Manager
When that loads, on the far left menu, click on SQL Server Services
You should see at least three items on the right window, probably SQL Server (SQLEXPRESS), SQL Server Agent (SQLEXPRESS), and SQL Server Browser. Right click on SQL Server (SQLEXPRESS) and click Start (if it's highlighted out, that means it's running).
Then try logging into local again using Windows Authentication.

Connecting to SQL Server Express - What is my server name?

I was just given a laptop to perform some development from a client and I am currently in the process of setting it up. Visual Studio 2010 is installed as well as SQL Server Management Studio 2008 R2. I'm trying to open SQL Server Management Studio to connect to the database but so far am not having much luck. I'm used typing in for a server name something like...
localhost
(local)
SQLEXPRESS
None of these are working.
So my question is: How can I tell what type of SQL Server installation and configuration I have on this machine, and how can I discover what server name I need to use in order to properly connect to it?
--Addition--------------------------------------------
I looked into the services as directed and found a few instances as indicated. SQLEXPRESS and MSSQLSERVER. I have tried to login with both of those options in these configurations...
SQLEXPRESS
MSSQLSERVER
computername\SQLEXPRESS
computername\MSSQLSERVER
.\SQLEXPRESS
.\MSSQLSERVER
None of these worked. I also altered the 'Log On As' property of the services from 'Network Service' to 'Local System' and tried them again. Still no success.
Instead of giving:
./SQLEXPRESS //in the Server Name
I put this:
.\SQLEXPRESS //which solved my problem
You should be able to see it in the Services panel. Look for a servicename like Sql Server (MSSQLSERVER). The name in the parentheses is your instance name.
If sql server is installed on your machine, you should check
Programs -> Microsoft SQL Server 20XX -> Configuration Tools -> SQL Server Configuration Manager -> SQL Server Services
You'll see "SQL Server (MSSQLSERVER)"
Programs -> Microsoft SQL Server 20XX -> Configuration Tools -> SQL Server Configuration Manager -> SQL Server Network Configuration -> Protocols for MSSQLSERVER -> TCP/IP
Make sure it's using port number 1433
If you want to see if the port is open and listening try this from your command prompt...
telnet 127.0.0.1 1433
And yes, SQL Express installs use localhost\SQLEXPRESS as the instance name by default.
Sometimes none of these would work for me. So I used to create a new web project in VS and select Authorization as "Individual User Accounts". I believe this work with some higher version of .NET Framework or something. But when you do this it will have your connection details. Mostly something like this
(LocalDb)\MSSQLLocalDB
by default -
you can also log in to sql express using server name as:
./SQLEXPRESS
or log in to sql server simply as
.
This was provided after installation of Sql Express 2019
Server=localhost\SQLEXPRESS;Database=master;Trusted_Connection=True;
So just use 'localhost\SQLEXPRESS' in server name and windows authentication worked for me.
Similar to what StuartLC was saying, my problem was not resolved until I enabled TCP/IP protocol under SQL Network Configuration>>Protocols for MSSQLSERVER in the SQL Server Configuration Manager dialogue box. After enabling this and a restart, my SSMS connected right away with just the instance name (no ~\MSSQLSERVER).
All of the following services should be running,for successful connectivity:
SQL Full test filter Daemon,
SQL server(SQLEXPRESS),
SQL Server Agent(SQLEXPRESS),
SQL Server Browser,
SQL server reporting service and
SQL Server VSS Writer

Can't get SQL server name

I'm trying to add new data source via the data source configuration wizard. I'm using Microsoft SQL Server as data source and .NET framework Data Provider for SQL Server as data provider. In the next window where I have to choose the server name, the list is empty. So I thought one of the SQL services are not working, I opened services.msc and there were 6 services, from which only SQL services vss writer was enabled. I enabled all of them (SQL Server, SQL Server agent, SQL Server browser, SQL Server Active Directory Helper) but the list still is empty. What should I do?
The SQL Browser service is the one used to allow other machines to discover the SQL server's existence on the network, though this requires TCP/IP or Named Pipes to be enabled in the SQL configuration, so check that too.
Also check your firewall isn't blocking the UDP port 1434 (and TCP port 1433 for that matter) [note, these are the default ports; they can be changed in the configuration).
The problem here might be your Database might not have permission over network..
Just try to connect by using Sql Authentication using sa account and password.. This should help you.
The other reason might be if you are using Visual studio 2010 it wont show database from Sql Server 2000
Accept or Vote up if it works for you.

sql server 2000 error, error trying to connect to sql server 2005

i am connecting to sql server 2000 on a remote computer with a dotnet application, but when i try to open the connection it gives the following error:
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
What is this?
It means that the remote SQL server is configured to not allow remote connections.
From this forum discussion:
Make sure SQL SERVER is up and the instance you try to connect is running.
Your system Firewall should not block SQL Server port.
Go to Computer Management >> Service and Application >> SQL Server 2005 Configuration >> Network Configuration Enable TCP/IP protocol. Make sure that SQL SERVER port is by Default 1433.
Now follow this KB Article of MSDN depending on your server.
Are you sure you're connecting to a sql server 2000 instance?
Possibly it's been upgraded to 2005?
Try following the procedure here: http://support.microsoft.com/kb/914277 to allow remote connections.
By default, as a security feature, SQL Server 2005 does not enable connections from other machines on the network.
Verify that your SQL Server and its databases are suitably secured (for example, have proper user accounts and passwords, etc.). Once you are satisfied, go to Start, Program Files, Microsoft SQL Server 2005, Configuration Tools, SQL Server Surface Area Configuration. Look for Database Engine, Remote Connections and change the setting to allow remote connections.