Connecting to LocalDB Server in Navicat Premium - sql-server

Recently I installed LocalDb Serer on my laptop. I am trying to establish a connection between Navicat and LocalDB server. But unable to get the correct Host Name/IP Address for the LocalDB server.
I noticed by default LocalDB server always creates an instance named MSSQLLocalDB when started.
I've searched internet but couldn't find the exact solution for my problem in navicat premium software. Here is the error I am getting.
Excuse me if I've posted this in the wrong forum.
EDIT After some try I am getting this error. I don't think there is anything wrong in the instance name.

Install the Native SQL Client, as the error message suggests.
Download ENU\x64\sqlncli.msi from www.microsoft.com/en-us/download/details.aspx?id=52676

Related

SQL server doesn't install

What we know / I've tried so far:
It failed during installation. Everything else seems to be installed correctly except for "Database Engine Services" (Ignoring server replication).
The installer sent me here, but this solution doesn't seem to work either.
The SQL Server service doesn't start.
The following screenshot is what I see when I click on the repair:
Looking through the logs, this is the repair error description: The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.
Thank you!
I couldn't install SQL Server 2019 Developer as well because of other reason below:
A computer restart is required. Please restart your computer and try
the Basic installation again.
So, I restarted my Windows PC, then I could install SQL Server 2019 Developer.

I have installed SQL Server and Managment Studio on laptop but server name has gone

The other week I installed the latest version of SQL Server and Management Studio. In the Server Name box was a long name made up of some path and other parts however it has now disappeared and reading all these answers has not helped. I downloaded two backups of databases from a live server and restored them down here. I could access them and everything was fine until the server name disappeared and I have no idea (none of the ones on here work) how to get it back.
If I try localhost, 127.1.1.0 or . as the server name it doesn't work the error I get is:
A network or instance-specific occurred whilst establishing connection to SQL Server....Provider: Named Pipes Provider, error 40- could not open connection to SQL Server
If I go into services I only have SQL Server Browser and SQL Server VSS Writer. Under Browser it is disabled. If I start it or tell it to start on delayed or manual or just start it, it starts okay and then two seconds later its stopped again with no error message.
If I got to CMD and type (under) I get (under that)
C:\Windows\system32>SQLCMD -L
Servers:
;UID:Login ID=?;PWD:Password=?;Trusted_Connection:Use Integrated Security=?;
*APP:AppName=?;*WSID:WorkStation ID=?;
No list of servers which another answer suggested.
I cannot find under services a MS SQL Service for some reason.
Everything was working fine the last time I came to do some work on this so I don't know if some virus was detected that removed the service or something.
I had two databases to connect to and run queries against and try to get a Windows Service working again locally but I can't get the DB to work.
I am on Windows 8.1 64bit laptop with enough diskspace.
If I go to C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn and double click sqlservr.exe, I get the error
Your SQL Server Installation is either corrupt or has been tampered with (Error getting Instance ID from name) Please uninstall then re-run setup to correct this problem.
Is it a case of me having to uninstall Management Studio and restarting again? I don't know what could have corrupted it but I need it working.
Should I just use the SQL Server 2017 Configuration Server to see if that can fix it or do I need to delete whole directories or "uninstall" from "programs and features" and try to install it again?
Still have no scooby to why the server name disappeared in the first place. Anyone got a clue?
SQL Server should appear in Services (you should not start it by double-clicking sqlservr.exe). If it doesn't appear anymore, you should reinstall SQL Server. After that you may attach the MDF and LDF files of your user databases, if they are still available (but in your case, you can also restore the backups again).
It seems your SQL server is not installed properly or corrupted now.
If the SQL Server installs on any machine there is a service named 'Sql Server(MSSQLSERVER)' or similar must be there and in 'Running' mode to connect to the database.

VS2013 schema compare: "Source is unavailable" when running against SQL Server 2016 Express

I'm trying to run a schema comparison using Visual Studio 2013.5 with SQL Server Data Tools 12.0.50730.0 against a SQL Server 2016 (13.0.300) Express database.
I can configure the source connection OK, and when I hit 'Test Connection' in the connection properties dialog it says "Test connection succeeded."
However, when I hit 'Compare' in the schema comparison window it says "Initializing Comparison..." for a few seconds, then "Source is unavailable: "
This only happens if I use a SQL Server 2016 as the source, other servers work fine.
Is this a bug?
EDIT: I have also tried using SSDT 14.0.50730.0 in VS2015 and I get the same error.
In Visual Studio 2017 I had the same issue and the only solution that worked for me was:
Close Visual Studio, open it and try again :) It seems to be a caching issue. Another option is to rename the DB but that's not a nice way of workarounding this issue.
SQL Server Data Tools support for SQL Server 2016 is now GA and the latest update through Extensions and Updates in VS2013 and VS2015 will resolve this issue for you. You can also download directly from this page for VS2015, and this page for VS2013.
I had this error. Once I changed the server name from "pcname" to its IP "192.168.1.xxx" it worked.
The tools for SQL Server 2016, like the database engine itself, are still in preview. The July RTM release of SSDT doesn't include support for SQL Server 2016. You'll need to download and install the "SSDT June Preview" release from here: https://msdn.microsoft.com/library/mt204009.aspx
I have found that using username#servername as the username for connecting will fix the issue when it happens against Azure databases. Not sure if this works for non-Azure. I've had connections that have historically worked without doing this suddenly stop and then this has fixed it for me.
For instance, when using a login of mylogin and connecting to myserver.database.windows.net, if I instead use mylogin#myserver.database.windows.net as the username I won't get the "Source is unavailable" issue.
I was having the same problem connecting to AWS RDS instance. The only changes that I can tell caused the problem were upgrading to VS2015 and SSDT 14.0.61021.0
I added the following to the connection string and some combination of them fixed the problem:
;Connect Timeout=60;Encrypt=False;TrustServerCertificate=True;Persist Security Info=True
I figured this out by recreating the comparison then comparing the two .scmp files
When I had this error message, the solution was to use a login that had the sysadmin server role.
It seems to be a cache issue. I get it resolved by
Connect to some other Database on the same server
Compare schema against target project
Remove history of your main database from the connections
Restart Visual Studio
Create connection with your main database and compare schema again
Hope it works for you!

DBVisualizer doesn't connect to SQL Server using jTDS

I tried to connect my database using the default Sql Server driver and it doesn't work, but from my computer with the same configuration I can connect to the Management Studio.
The error is time out, it can't find the database, but the
configuration is correct!
If you give some more information than that would be helpful, Do you have installed correct (JDBC) driver btw? Also, see this link if it is helpful to you Click here

Error when connecting to the SQL Server 2012

I have installed SQL Server Management Studio 2012 and there is a problem when I open it it asks me to enter a server name. Which I failed a lot. I tried enter everything that is asked on net when I searched for. Nothing worked it gave me error which the image below shows. TCP is enabled.
And when I opened SQL Server Configuration Manager it shows empty. When I try to browse for server it also shows completely empty.
What can I do to fix this? . Or how can I create a new instance as it says my instance is not found.
I saw lot of posts regarding similar problem but non of them really couldn't address my problem.
Actually I haven't installed it properly. I had installed SQL server Management Studio only. Now it is perfectly working after installing SQL server. From here actually. And I browser for server name it was there.

Resources