How to connect to localdb in Rider? - sql-server

Trying to connect to localdb using Database tab in Rider.
I adding SqlServer jTds and Rider shows this error
Connection to SunEngineDb1 failed. [08S01] Network error IOException:
.\pipe\MSSQL$LOCALDB#E65C6709\sql\query (Can not find the specified
file)
What am I missing, and how it can be solved?
It is ASP.NET Core 2.0 project with localdb database on development. If I run it it works perfectly including database connect.

Well, finally we discovered the problem. It is the mistake in the driver we provide. To have this issue fixed urgently, delete the file \config\jdbc-drivers\jdbc-drivers.xml and restart the IDE. Then, please, refresh your driver to 1.3.1.1 or just put [latest] there.

Related

The connection "Connection" cannot be found. Verify that the connection manager has a connection with that name

I'm using an ODATA connection manager in SSIS to connect to a private Sharepoint Online, I manage to test the connection when I create the connection manager and to do a preview of my list when I'm in the designer. When I try to execute the package in VS I'm getting the following error:
The connection "Connection" cannot be found. Verify that the connection manager has a connection with that name
OData source failed validation and returned code 0xc020801A.
I already created a new package and I'm sure that there is no any other connection in logging tab, btw my other packages (which dont use an OData connection mgr. works perfectly)
My environment is configured as follows:
VS Studio 2017 Community edition
SQL Server Data Tools 15.1.61810.11040
Sharepoint Online
I installed also "SharePoint Server 2013 Client Components SDK" because with "SharePoint Online Client Components SDK" I could not even configure the connection manager in SSIS, since I was having the following error:
Could not load file or assembly 'Microsoft.SharePoint.Client.Runtime', Version=15.0.0.0
After installing the SDK 2013 I could configure correctly the connection manager.
Thank you in advance, any help is appreciated.
Please make sure the OData connection can be found in the "connection managers" panel in the package, if it does, try to create a new solution and check if this error can be reproduced in it.
For the details on creating OData Source, please check this link:
Tutorial: Using the OData Source
My sample test demo for your reference:
look this https://social.msdn.microsoft.com/Forums/en-US/d8d524f0-d373-47d1-b239-424b26ac59a7/the-connection-quotconnectionquot-cannot-be-found-verify-that-the-connection-manager-has-a?forum=sqlintegrationservices
i have same problem
becuase languafe of IDE and SQL server is different (SQL Server - english, in IDE your national language)
simple solution is change in your dtsx name to "Connection"
I had this problem but with the word "Conexión" in Spanish. I use Visual Studio 2019 in English, but I change the language to Spanish and everything worked.

No data connection after cloning ASP MVC project to different computer

I was working on an ASP.NET MVC5 application and pushed it to git. Someone else cloned the project to their computer.
When they try to run the app it works up until there is a database call. They get the error message:
System.Data.SqlClient.SqlException: '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)'
In the Server Explorer we can see that the connection is closed. We also see no tables at all, like as if there was no database.
Does anyone know how we can approach this? I'd think that the connection string remains the same on each machine? The database was created code first, do we somehow have to recreate it? If so, how?
Thanks for your suggestions!
The connection string should be the same.
You should first disable Windows Firewall and antivirus programs (and similars), if they're present, and test again.
You should try a connection via another database client too, just to check if you are blocked someway.
If these attempts doesn't solve the problem, you can recreate the database for test pourposes, if you will. For Entity Framework, for example, search "migrations" term in Google.
The error is relevant. Obviously, from the computer hosting the cloned solution, the SQL server is not reachable.
If, in development, you used a local SQL Server (like SQL Express or Local DB), you must verify that on the computer hosting the clone solution you have the same setup. If you used a remote server, you must check that the server is available to the computer hosting the cloned solution.
In both cases, you can use Server Explorer to verify the db connection and access.
Unfortunately, there is no satisfying answer.
At first, we reinstalled Microsoft SQL Server. That alone did not help.
We did change the autentication from Windows Authentication to SQL, because the person working on that workstation still had the account details from the previous owner.
That alone did make the test connection successful. But then, we got another error when doing the "Update-Database" command in VS, which we solved by deleting a rogue migration that was there for some reason unknown.
Now it works - sorry for not offering a more concise solution.

Oracle database 12c Error while trying to connect: The Network Adapter could not establish the connection

I installed Oracle database 12c for the first time. I followed correctly all the steps and installed it on Windows 7 64 bits, but when I click on SQL Developer and try to create a new connection, I put in the informations like Username and password, and finnaly click on TEST button, I get this error message: "The Network Adapter could not establish the connection".
I dont know what to do anymore, I read tutorials and cant solve that error. Also, when I open SQL Developer, i get a message saying Im using a java version that is not supported by Oracle Database, Im using java 1.8 and it says I should use from 1.6 to 1.7 only. im not sure if that is causing something bad but it seems fine because I can go further using the SQL Dev. So, what should i do? Thank you very much!
Here are some things to check:
Ensure that the TNSNAMES.ORA file is properly configured to reference the database. Check for the SID, host name, and port number (typically 1521).
Check whether you can connect directly from the server, such as with SQL PLus. This should isolate whether it's a server or client problem.
Ensure that the Listener service on the server is running. Check that LISTENER.ORA is properly configured.
I encountered a situation in the past where client PCs could not connect. I found that by deleting (or renaming) the SQLNET.ORA file, the connection could be made.
Good luck.
Execute
tnsping <db_name>
from command prompt.
You will see, if listener is running and tnsnames.ora is configured properly.
Run with Windows PowerShell or Command Prompt (Admin) :
lsnrctl start

Remote SQL Servers unavailable after installing Visual Studio 2012

I just built a new machine after my old one crashed a few days ago. I'm running Windows 7. I installed SQL Server 2012 Express as well as SQL Server Development Edition with Tools.
After installing, I made sure I could connect to both the Express version, local Dev server as well as multiple remote servers. Everything was great.
This morning, I installed Visual Studio 2012. Since doing this, I can still connect to my Local servers (Express and Dev), but I can't connect to the remote servers. The error I get is this:
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.) (.Net SqlClient Data Provider)
I've searched for issues, and while I've found some similar to this, not many mention Visual Studio, and none offer a solution.
UPDATE
I found I can connect using Named Pipes. The problem then is that not all my servers are configured to allow Named Pipes.
Visual Studion Connection Related Error:
netsh winsock reset
Run this command in command prompt. That will Fix Connection Related Error in Visual studio 2012
I think you'll need to look in your SQL server configuration manager and make sure TCP/IP is enabled for the database instances your interested in.
It isn't by default if I remember rightly.
If you're ok locally, have you read this post?
An error occured during the pre-login handshake
As other users are experiencing this problem, I thought I would add the solution I found.
The utility lspfix.exe found a break in the Layered Service Provider (LSP) chain. I applied the recommended fix and I was up and running again.
The fix was recommended by the lspfix.exe application. It's a very simple tool to use and it found the problem quickly. Here is the url to the tool.
http://www.cexx.org/lspfix.htm

I/O Error: SSO Failed: SSPI Not Initialized

I am using pentaho data integration 4.1 (Kettle) to build an ETL system. My customer requires connecting to database (MS SQL Server) using window authentication, I knew that Kettle supported it . However when I run my Kettle job, it throws the exception
"I/O Error: SSO Failed: SSPI Not Initialized".
From an article on a forum, I copy library sqljdbc_auth.dll into jre/bin folder. The result is quite good, I can use window authentication to connect to SQL server. But this function is not stable, I mean sometimes it works well, sometimes it throws exception
"I/O Error: SSO Failed: SSPI Not Initialized".
Please tell me how to fix this error.
Thank you.
To connect to SQL Server 2008, I had to install the 'Microsoft JDBC Driver 4.0 for SQL Server' and then add the path to sqljdbc_auth.dll to Spoon.bat in %PENTAHO_DI_JAVA_OPTIONS%. Like this:
set OPT=%PENTAHO_DI_JAVA_OPTIONS% "-Djava.library.path=%LIBSPATH%;C:\PROGRA~1\MICROS~1.0FO\sqljdbc_4.0\enu\auth\x86;C:\PROGRA~1\IBM\SQLLIB\BIN" "-DKETTLE_HOME=%KETTLE_HOME%" "-DKETTLE_REPOSITORY=%KETTLE_REPOSITORY%" "-DKETTLE_USER=%KETTLE_USER%" "-DKETTLE_PASSWORD=%KETTLE_PASSWORD%" "-DKETTLE_PLUGIN_PACKAGES=%KETTLE_PLUGIN_PACKAGES%" "-DKETTLE_LOG_SIZE_LIMIT=%KETTLE_LOG_SIZE_LIMIT%"
Ugly, but that's Java under Windows for you. Works quite reliably now though.
Are you using the JTDS driver? Try that combined with the ntlmauth.dll - that works great for us when running PDI on Windows Server 2003 connecting to various remote sqlserver databases.
We place the DLL in this folder:
libswt\win64
I've had the same issue while using JDBC 1.2.2 with MSSQL 2008. It turns out that there is a bug in the driver, making it randomly crash if you initialize it with more than one connection.
If we used only one initial connection to the DB this error never presented itself.
The issue is fixed in a later versions of JDBC. We currently use 1.3.0 and I/O Error: SSO Failed: SSPI Not Initialized never comes up.

Resources