sql server connection not showing up - mysql

I have mysql installed (including the connector for .net) and visual studio 2019 installed but when I try to connect via the one of the connections I have on the work bench by entering the name (it doesnt show up on the dropdown) I get the following error: server was not found or not accessible
here is the relevant server information
here a few other stack overflow related questions I found but none of them were helping me:
Why am I getting "Cannot Connect to Server - A network-related or instance-specific error"?
SQL Server is not showing in Visual Studio
How do I ensure Remote connections are allowed?
Also I have visual studio 2019 which meant I couldn't download the special mysql toolbar but does that mean it won't work at all with visual studio 2019?

You have 2 pictures in your post, in the first you try to connect to SQL Server, not to MySQL.
Your second image says that MySQL connection was made.
So I imagine that you need to connect to MySQL, not to SQL Server, so you should not choose Data Provider for SQL Server, but any driver for MySQL

what ended up working is if I go back and install vs2017 as oppose to vs 2019.

Related

How to solve "A call to SSPI failed" in Visual Studio Community 2019

I am currently trying to connect my Visual Studio project to MySQL, which is linked to amazon RDS. MySQL is able to establish the connection to Amazon, but I am unable to link my Visual Studio to the MySQL database.
I keep getting this error when I connect to database:
A call to SSPI failed, see inner exception
I am currently using:
Visual studio 2019 community
MySQL connector 1.2.7 for SQL
I read forums saying something about TLS being different between the connections. Is there a fix?
So my project is using amazon to make a dynamic website then I am using MYSQL as a database using EC2 to link to the MySQL database and connecting to it in Visual Studio. Or are there other alternatives I can try to get my database and website up?

UDP port 1433 (ms-sql-s service): NOT LISTENING

Screenshot of cmd console
Image of Main Error:
Image of Configuration manager where no server found:
I have try to search all solution for error 26 of sql server but no solution work for me.
I have check that server is running by going to services.msc and I have also checked through management configuration tool, but all get fail in my case.
I have reinstall it to check any missing file in installation process.
So at the end I have used PortQryUI.exe to find main reason where I get this message on my console
UDP port 1433 (ms-sql-s service): NOT LISTENING
I am attaching some screen shot for more clarification. And I have also follow all the steps given at stackoverflow.com for solving error 26 but no solution work for me so please don't close this question, may it have some other problem but sowing error 26.
UDP 1434 is the SQL Server Browser Service port. This service is disabled by default. This service is only needed when connecting to named SQL Server instances (or default instances listening on non-default ports) from the network. Local connections are able to discover named instances using the registry.
TCP port 1433 is the SQL Server listenning port for default instances. Named instances (like SQLEXPRESS) use a dynamic port by default.
The SQL Server Protocols team has some good practical troubleshooting articles for connectivity issues:
Steps to troubleshoot SQL connectivity issues
How to Troubleshoot Connecting to the SQL Server Database Engine
Solving Connectivity errors to SQL Server
First of all I would like to thank you for you responses. Actually I have installed only management studio so I am facing this problem.
But earlier I have also installed only management studio when I am using visual studio 2010, but at that time it was working nicely. But when I have installed Visual Studio 2015 with SQL Server management studio 2012 after formatting my system, I have started facing this error.
Why this problem
Actually Microsoft have provided a facility in Visual studio that when we install it we will also get sql server installation with it so our management studio work nicely till Visual studio 2013. After that microsoft had removed this feature and now we need to install all the other file of SQL server with management studio.
Solution
We need to install SQL server files by our self. We can download them from Microsoft's site, like i have downloaded 2014 version from Microsoft's site.
You can download SQL server 2014 express from here
After a long time struggling with my SQL Server was just refusing to listen on 1433 despite following all advice online and searching extensively: My network was a public network. It took a long time before I got a thought that maybe SQL Server would have a check to not listen on a public network even if you try really hard to make it.
I don't know how my USB wifi home network was set to public in the first place, but I suppose I must have done that somehow. However I actually couldn't find this in any help or forums that I searched.

how to fix error in re-installing SQL Server 2008

I had sql server installed in my laptop. I planned to download an update of sqlr2 since I wa not able to attach my previous database in sql server 2008 since it is a 661 version. The update didn't finish as expected hence I decided to uninstall sql server 2008 by deleting it in the control panel.
Now when I tried re-installing sql server 2008 back, I am getting following error prompt
https://imageshack.com/i/1qu5vzj
http://imageshack.com/a/img62/3218/u5vz.jpg
When I click on continue option, it again comes back to the same promot
Can anyone help me how to fix this error so i can install sql server 2008 again in my laptop?
I think the problem is about .Net framework 4 . your windows is x86 or x64?
try to install it without using sql server 2008 install package base on your OS system type.

Connect to sql server 2008 using Microsoft Server Management Studio

I have difficulties connecting to my MS SQL Server and I can't find tutorial or answer how to do this, even though I think this should be something pretty standard.
My current setup is this - I have freshly new Installed Visual Studio 2010 and followed Beth Massi's article Step-by-Step: Installing SQL Server Management Studio 2008 Express after Visual Studio 2010 : http://blogs.msdn.com/b/bethmassi/archive/2011/02/18/step-by-step-installing-sql-server-management-studio-2008-express-after-visual-studio-2010.aspx
But I'm not able to connect to a SQL Server. In my Configuration Tools\SQL Server Configuration Manager I see this when I open it :
I set to Enable all TCP\IP and Named Pipes (Just saw that this may be a problem) and in the properties of the SQL Server (SQLEXPRESS) from Services I see this:
I also see in the Log On tab this :
some sort of password (not entered by me) it seems to be something default, but since I'm not sure where the problem is I try to show everything I think may have something to do with solving my problem.
At the end I tried different options to connect to my SQL Server form the Management Studio I ended up with this:
As you see I get an error (included in order to be able to read it). I read the the machine name may be required so my User Account name is Xman and my machine's name is Xman-PC. Eveh though my printscreen image is not from this try I made an attempt to connect to the Server with XMAN-PC\SQLEXPRESS but again - no success.\
Could you point me to a good tutorial on how to connect to a MS SQL Server (I can't believe there's nothing that explains in simple steps what you need to do to connect to a server) or could you tell me how to set-up my configurations so I actually can start to work with databases?
P.S
Forgot to mention in Command Prompyt - sqlcmd command also returns error - Could not open SQL connection.
P.S
Finally I managed to connect using Windows Authentication and (local)\sqlexpress for ServerName. Which at least means that everything is working. But now even more I would like to know how to connect using SQL Server Authentication. It must be something default as it was for Windows Authentication?!
Looks like you've done the hard work - last step will be turning on SQL Server Authentication.
Since you installed with the default values, only Windows Authentication is allowed; you need to set it to SQL Server and Windows Authentication mode. You can do this through Management Studio through the instance Properties -> Security.
See this link for full details: Change Server Authentication Mode.

Experiencing problems running Sql Server 2008 Express Edition SP1 on Windows 7 (firewall issue?)

I've installed sql2008 express sp1 on my laptop that's running the beta 1 of windows 7. The problem that I'm experiencing is a combination of dynamic ports/firewall/windows 7.
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)
I was first experiencing this problem when I was trying to connect to sql with the management tools, but as soon as I enabled Sql Server Management Tools as a program to go through the firewall it worked out fine. Now the problem is when I launch my web site it gives me that error. I've also positive that sql browser is running and I've enabled tcp/ip and named pipes in the sql express service.
So does anyone have any thoughts as to how to resolve this?
Are you using the same instance name in both SSMS and your web application?
Commonly, people will try to connect based upon the machine name exclusively, for instance "MySQLServer". SQL Server Express installs a named instance by default, whose default name is SQLExpress. If this is the case, try connecting to "MySQLServer\SQLExpress" instead (omitting the quotes, of course).
Go into SQL Server Configuration Manager - under Programs - Microsoft SQL Server 2008 - Configuration Tools - and make sure that under SQL Server Network Configuration - Protocols for SQLExpress, that Named Pipes is enabled (by default it is not).
Yes, I'm aware of both scenarios. I've setup as a named instance and as a default instance as well, and adjusted the connection strings, neither worked.
I've also enabled named pipes and no go. It has everything to do with windows 7 firewall, but couldn't figure it out so I just installed server 2008 standard edition and voila.
I suspect the fact that it uses dynamic ports is another issue with windows 7.