Connection to Remote SQL Server 2012 from Visual Studio 2013 - sql-server

There is a weird problem that I am facing. I have Visual Studio 2013 and SQL Server 2012 Management Studio. A few days back I was easily able to connect to the remote database that resides on another PC on the network with SQL Server Management Studio installed through the following procedure:
Goto Server explorer
Connect to the database
Browse the server name. It came as HO-IT-WS-08\SQL2012. Select it.
Browse the database names. Select the relevant database
The test connection used to be successful. However now, doing the same procedure my visual studio crashes once i perform the 4th step and restarts. It is like this. I select the server name browse the databases and the visual studio crashes restarting. I checked all the things but am not able to figure out the issue. Kindly help me!

Did you try entering server name without browsing it?
When you go for browsing, VS queries the network for the Sql Server browser services and "hangs" until it receives response.
Maybe the SqlServer browser has been disabled? Go to SqlServer Configuration Manager, and check for SqlServer Services / Sql Server Browser.

Related

Visual Studio Unable to Add Data Connection to SQL Server Express 2016

I'm working in VisualStudio Community 2015, SQL SERVER EXPRESS 2016 and when I try to add server connection with sqlServer appears the error I attach below:
(After TEST the connection and be safe that all is right)
Fixed... I had to install SQL Server 2014 :(
It is not necessary to install sql server 2014
Only you have to install sql server 2014 feature pack because it contains assemblies needed by visual studio 2015
Download link
https://www.microsoft.com/en-us/download/details.aspx?id=42295
This is the new problem I have in VS 2022 it works fine in VS 2019
The same, issue is happening with Visual Studio 2022. It works fine with VS 2019.
The connections/ login window looks like in SQL Server Management Studio.
Details: in Visual Studio on the SQL Server Object Explorer I was able to add the PDW server.
I can browse the server tables, stored procedures, security and all.
If I right-click on a database, or table and select "New Query", it will ask me to log in with the same window as M Studio.
I am able to connect fine if I open an existing query.DSQL file it allows me to use history connections or connect normally.
So I am connected to the server on SQL Server Object Explorer but when try to open a stored procedure it asks to login again and that is where it fails because it tries to connect with different parameters

Unable to connect to SQL Server 2008 R2 from SQL Server Management studio or Toad for SQL Server

I have been Using SQL Server 2008 R2 database for quite sometime. All was working fine till two days back w.r.t connecting the database from SQL Server Management studio. Now if I try to connect, it keeps on connecting and it never shows me connected database in Object Explorer. Same thing happens when I try to connect using Toad for SQL Server.
Image showing connection details
However I am able to connect the same database (which is installed on my local machine) from my peer's SQL Server Management studio and he was able to access that database properly. Also I am able to connect the same database from my web application (which is also installed on my local machine) and also from Eclipse --> Database Development plugin.
I even reinstalled just the SQL Server Management Studio (I haven't uninstalled MSSQLSERVER during this) and tried again, yet it was showing the same result.
Also currently in the client protocols, Shared Memory, TCP/IP and Named Pipes are enabled.
Please let me know if anyone has come across this strange problem and really appreciate your help.

Creating Database in Visual Studio 2015

I am trying to create a database in Visual Studio 2015 MVC setup. When I create a new file in the "App_Data" folder and select SQL Server Database, a popup comes up that says the following:
"Connections to SQL Server database files (.mdf) require LocalDB or
SQL Server Express to be installed and running on the local computer.
You may need to modify the setup and ensure Microsoft SQL Server Data
Tools is selected."
I have already installed SQL Express in my computer. But Visual Studio still shows the same popup. Can anyone please give me a step by step instruction on how to create a DB through Visual Studio 2015?
(My thought was if I clicked on new file->SQL server Database, then a popup would launch allowing me to input my data and name it. But I obviously am unable to do that).
Make sure that SQL Server is up and running. Open up SQL Server Management Studios (installed with SQL Server) and try and connect to the instance that you created (should be the same as your machine name). If it fails to connect, SQL Server might not be running.
To turn it on, open SQL Server Configuration Manager (just do a search and it'll show up), go to SQL Server Services, and turn on the database engine. You should then be able to connect to the database.

Local server in SQL Server 2012 Management Studio

I've installed Microsoft SQL Server 2012 Management Studio today and now I'm trying to connect to server. As far as I know there should be default local server that would allow me to create a database in it. Unfortunately, my list of servers is empty and I cannot connect to anything. I've read tutorials and tried everything, even reinstalling all the Microsoft SQL Package. How can I fix this problem and find/create my local server?
Ok, I've read that there might be a problem with connecting to database even if whole microsoft package gives me LocalDB. I had to install Visual Studio, then clicked View -> SQL Server Project Explorer. Right click at 'SQL Server', I added new database and then entered its name. Now I can connect with my own server by typing '(localdb)\v11.0' in management studio.

Visual studio 2012 neither able to add database file (.mdf) nor create aspnetdb with Sql Server 2012 x64

I'm using VS Pro 2012 and SQl Server 2012 64 bit developer edition.
Here is a quick view of my SQl configuration and the errors when taking ASP.NET configuration in VS 2012 and when adding a new database.mdf file. Notice that I can connect to SQL server database created with aspnet_regsql tool from Server browser window.
I've tried most of the answers for similar questions I found.
There is a problem with your selected data store. This can be caused
by an invalid server name or credentials, or by insufficient
permission. It can also be caused by the role manager feature not
being enabled. Click the button below to be redirected to a page where
you can choose a new data store.
The following message may help in diagnosing the problem: Unable to
connect to SQL Server database.
Please help me solve the problem with VS 2012. I've tried it with both win7 & win8 installations, but all in vain.
The connection string uses default Data Source=.; and I can connect to default instance . from SQL server Management Studio.

Resources