How to connect to existing SQL Server in Azure Data Studio 3?

Nuako, A 0 Reputation points
2024-03-26T15:51:01.0133333+00:00

When I attempt to connect to my institution's SQL Server I get this message "A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)" then when I disable the Trust Settings I get "Connection failed due to Kerberos error. Help configuring Kerberos is available at https://aka.ms/sqlopskerberos If you have previously connected you may need to re-run kinit." I attempted to follow the Kerberos instructions unsuccessfully.

Azure SQL Database
Azure Data Studio
Azure Data Studio
A cross-platform database tool for data professionals using on-premises and cloud data platforms on Windows, macOS, and Linux.
118 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 66,461 Reputation points
    2024-03-26T16:30:43.9633333+00:00

    if you are using a Mac, just use "ticket viewer" to create the kerberos token. its typically username@domain for the user name.


  2. Erin Stellato 651 Reputation points Microsoft Employee
    2024-04-24T00:51:49.43+00:00

    For TCP error 35 (Nuako, A), if connecting to a docker container, try using the IP address of the container, rather than the container name.

    For TCP error 40 (Pavithra Ravi), were you able to connect to the SQL Server previously from that workstation, either with an earlier version of Azure Data Studio, or with another application (e.g. SSMS)? If this is a local SQL install (e.g. SQL Express), do you have Named Pipes enabled?

    In all cases, please confirm the version of Azure Data Studio using Help > About and include it, as well as the version of SQL to which you are connecting, in any reply with additional questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.