Connect SQL Server to Java | JDBC | TCP/IP Error | SSL Error | Authentication DLL Error | All fixed

Поділитися
Вставка
  • Опубліковано 16 вер 2024
  • Connecting #Microsoft_SQL_Server to #Java using #JDBC.
    All the steps are explained.
    JDK Download link: www.oracle.com...
    JDBC Download link: docs.microsoft...
    Tried to fix below issues/ error.
    1. No suitable driver found for jdbc error fixed.
    2. The Server sqlexpress is not configured to listen with TCP/ IP Error fixed.
    3. The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) Encryption error fixed.
    4. Unable to load authentication DLL mssql-jdbc_auth-10.2.0.x64 Error Fixed.
    5. The connection to the host (server name), named instance sqlexpress failed error fixed.
    If this video helped you, then don't forget to subscribe.
    Thankyou!

КОМЕНТАРІ • 103

  • @lastminutecoders
    @lastminutecoders  Рік тому +2

    Do Subscribe to support me.
    Thankyou!

  • @fernandocardozo4008
    @fernandocardozo4008 2 роки тому +1

    this man is the glory and the fucking god. I really tried to solve this problem, literally i spend 5 hours trying and i did not get anything and with the help of this video i managed to get my web application working.

    • @lastminutecoders
      @lastminutecoders  Рік тому

      Haha💫.... Best commet so far.. thanks for your kind words,🙌

  • @fights1300
    @fights1300 Рік тому

    Best video for handling these errors, actually got me all the way to the end until integrationSecurity wasn't working for me, so I had to put manual user and password into the connection string along with encrypt = false and it worked

  • @SaifKhan-gx9lf
    @SaifKhan-gx9lf 8 місяців тому +1

    araay subscribe bhai sab kr dya like comment share sab yr tum na hotaai tu hamari koi aukaat nahi yr love you bro love you...

    • @lastminutecoders
      @lastminutecoders  8 місяців тому

      Are bhai 😅 rulaoge kya🤣🫂... Best comment💯

  • @SangramBiswal-fl8gg
    @SangramBiswal-fl8gg Рік тому +1

    Thank you , solving all the errors one can face during the connection.

  • @sagarbs5833
    @sagarbs5833 2 роки тому +2

    Really great man 🤟🏻 tried hell lot of methods but you helped me out in a single go thanks much 🎉

  • @kamrunkanta4696
    @kamrunkanta4696 7 місяців тому +1

    Thank you! You helped me a lot! God bless you. Please make more video on how we can execute the query from the database and how to validate stored data.

  • @ndkhanhs_m01
    @ndkhanhs_m01 Рік тому +1

    all problems are here, thank u so much

  • @nprajwal420
    @nprajwal420 Рік тому

    your awesome sir, you explained things with versions matching, i have been looking for this type of video where you explained by showing the versions used and errors one by one, but i could not find like this anywhere else, thankyou so much, i have been working for this connection establishment from past 3 to 4 days. now it is connected.

  • @alwahabmalik
    @alwahabmalik 7 місяців тому

    Thank You Bro for making such an informational error. God bless You Aameen.........

  • @andrewstudy-ji2vt
    @andrewstudy-ji2vt Рік тому

    after 2 hours of searching u helped me so much thanks man , i was getting sick form ssl socket error!!!

  • @singh7shibs
    @singh7shibs 10 місяців тому +1

    ThankYou so much !!! Really Helpful

  • @nprajwal420
    @nprajwal420 Рік тому

    once again thankyou sir, i am refering this video twice, after long gap i reset my pc and for setup ssms this video helped me

  • @KapilDhapkale
    @KapilDhapkale Рік тому +1

    ERROR
    java.sql.SQLException: I/O exception while talking to the server, java.io.EOFException Unable to connect, please check your server's version and availability.
    PC-Configuration
    1) Operating System - Windows 11
    2) Microsoft SQL Server Enterprise Core-based Licensing (64-bit) 2019
    3) SQL Server Management Studio v18.0 - 15.0.18369.0
    4) JDK - jdk1.8.0_181
    5) JRE - jre1.8.0_181
    6) Apache Tomcat - apache-tomcat-9.0.44
    7) STS (Spring Tool Suite) - Latest Version
    Please help me

  • @SrikanthSM-i3u
    @SrikanthSM-i3u Рік тому

    Thanks Man, Its working.

  • @annguyenhuu4035
    @annguyenhuu4035 2 роки тому

    That's great. you are like a savior to help me out of this mess. Thank you so much

  • @ashu_the_0ne
    @ashu_the_0ne 2 роки тому

    thank you so much, it solved my problem . keep helping people

  • @florencioaquije1422
    @florencioaquije1422 2 роки тому

    I was looking to solve the problems I had. Thank you very much, very good video and explanation.

  • @acrohorn
    @acrohorn 4 місяці тому

    THANK YOU SO MUCH, I DID IT WITH YOUR HELP

  • @Doum4n
    @Doum4n 7 місяців тому +1

    Thank you very much

  • @AnkitSingh-rz2pf
    @AnkitSingh-rz2pf Рік тому

    Thanks dude! It really helped me a lot.

  • @Petukthakur
    @Petukthakur Рік тому

    thanks boss you are brilliant too much really applaud

  • @Mahmoud_Nabil_2003
    @Mahmoud_Nabil_2003 5 місяців тому +1

    thanks alot

  • @RanveerSingh-ug6lu
    @RanveerSingh-ug6lu Рік тому

    Thank you for solving this error.

  • @naeemrmaity5760
    @naeemrmaity5760 Рік тому +1

    i cant thank you enough been struggling with all these errors all day! and thanks for the English captions helped a lot to understand have an amazing day sir!!

  • @MadihaMirza-bc7xb
    @MadihaMirza-bc7xb 3 місяці тому

    t establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption: Error: The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]. ClientConnectionId:e5f9379f-732c-4684-accb-c57c0e1d40c0
    BUILD SUCCESSFUL (total time: 0 seconds) mera yeh a raha kaya kero

  • @IamTejuPerala
    @IamTejuPerala 2 дні тому

    I am getting this error : "Integrated authentication failed. ClientConnectionId:4216ea9f-5cd9-4314-b6a3-dcbecc25b4e7"

  • @ManikandanS-go1tn
    @ManikandanS-go1tn Рік тому

    Thanks for the help..

  • @kiranjotkaur4414
    @kiranjotkaur4414 4 місяці тому

    It is bit urgent ! where to paste mssql-jdbc_auth-12.6.1.x64.dll file in mac

  • @anuragyadav7869
    @anuragyadav7869 Рік тому

    Thank you very much it worked. But I want to bring one point, Is it necessary to set TCP/IP port. I didn't set any and connection is established for me.

    • @lastminutecoders
      @lastminutecoders  Рік тому

      Your most welcome✅💫..... I got the error at that time so I had to set.... May be now there is no need anyways this video is more than a year old.... Tech changes✅💯

  • @tulasapokhrel9189
    @tulasapokhrel9189 2 роки тому

    Worked for me. Thanks

  • @purnimagupta8181
    @purnimagupta8181 2 роки тому

    Getting Error : "Caused by: org.hibernate.exception.SQLGrammarException: Unable to open JDBC Connection for DDL execution" while using MS SQL

  • @ErinJerbil
    @ErinJerbil 6 місяців тому

    im getting this error
    Error: This driver is not configured for integrated authentication. ClientConnectionId:1eb15706-194f-47a3-80a8-aee15c67ec29
    can you help?

  • @darshshah5365
    @darshshah5365 2 роки тому

    How to implement after connected to database?
    Like how to get/alter data in tabels from eclipse

  • @rheawilkins3413
    @rheawilkins3413 2 роки тому

    You saved me THANK YOU!

  • @Milizaus
    @Milizaus 2 роки тому

    thx!! you are my savior!!

  • @sonalisalave7566
    @sonalisalave7566 Рік тому +1

    SQL server Exception

  • @leaotanthanh5244
    @leaotanthanh5244 2 роки тому

    Your are my angel!!!!!!!!!!!!!!!!!!!

  • @trb_rangababu5040
    @trb_rangababu5040 Рік тому

    How to resolve connection reset
    We are facing this issue every time in the application end.
    Please advise

  • @user-hf8os4yp4d
    @user-hf8os4yp4d 2 роки тому

    YOU SO AWESOME THANK YOU SOOOO MUCH

  • @hoangvo9974
    @hoangvo9974 Рік тому

    thank u man, u have saved me

  • @harpreetkaurlnu1543
    @harpreetkaurlnu1543 2 роки тому

    Hi, I still got an error message " Login failed for user ''. ClientConnectionId:6e03e4fb-60e5-45b7-920d-fd433ab7e115"
    can you help me out? kinda urgent

    • @lastminutecoders
      @lastminutecoders  2 роки тому

      Please try again with all the steps shown in this video

  • @KamranKhanmba
    @KamranKhanmba Рік тому

    how to fix ssl error with sql server auth on local machine

  • @ainaomer
    @ainaomer Рік тому

    i am still having ssl handshake exception

  • @jitendralovekar1
    @jitendralovekar1 2 роки тому

    Would you like to try this on Java 8 instead. Not sure if it will work.

  • @bsbarkathulla8120
    @bsbarkathulla8120 Рік тому

    Thanks you bhai

  • @Aly_Qamar
    @Aly_Qamar 2 роки тому

    Thanks bro ✨❤️

  • @cutepuffpaws4420
    @cutepuffpaws4420 Рік тому

    thankyou man!

  • @goldentitan311
    @goldentitan311 2 роки тому

    ty very much

  • @cutepuffpaws4420
    @cutepuffpaws4420 Рік тому

    servlet se kaise connect kare? driver not found exception aa raha hai ....jar file add kar di

    • @sagarsoni985
      @sagarsoni985 4 місяці тому

      I am too getting the same error for servlet connection

  • @kanisfatimachaity8892
    @kanisfatimachaity8892 Рік тому

    thanks a lot bro

  • @mudassarali1999
    @mudassarali1999 2 роки тому

    thanks bro

  • @nikhilk516
    @nikhilk516 Рік тому

    Brother how to fix this error in MAC OS?

  • @sonalisalave7566
    @sonalisalave7566 Рік тому

    Still it's giving error

  • @halildurmaz8516
    @halildurmaz8516 Рік тому

    you really helped me a lot, you are amazing man, thank you so much. I admire you. ❤❤❤

  • @testEngineer02
    @testEngineer02 Рік тому

    Really thank you for the video. I'm using Windows Authentication but the java program is running from the Linux VM. The connection string is as follows:
    jdbc:sqlserver://:1433;databaseName=DB;authenticationScheme=JavaKerberos;trustServerCertificate=true;integratedSecurity=true;domain=;
    But getting the following error
    com.microsoft.sqlserver.jdbc.SQLServerException: Cannot login with Kerberos principal saawn.joritzswddb, check your credentials. Kerberos Login failed: Integrated authentication failed. ClientConnectionId:6a499405-641f-4ee3-bf27-469c569e0820 due to javax.security.auth.login.LoginException (KrbException: Cannot locate default realm)
    Can you help on this?

    • @lastminutecoders
      @lastminutecoders  Рік тому

      Thanks for the compliment, but sorry, the only things I know are in this video.

  • @PavithraMahalingam-cg8wm
    @PavithraMahalingam-cg8wm Рік тому

    This driver is not configured for integrated authentication. ClientConnectionId:5a093b36-6172-4ef3-9831-ef883af486a2--- ed by: java.lang.UnsatisfiedLinkError: Unable to load authentication DLL mssql-jdbc_auth-11.2.1.x64 already copied file in jdk bin folder but still getting error
    jdbc:sqlserver://DESKTOP-*******\SQLEXPRESS;encrypt=true;trustServerCertificate=true;databaseName=data1;integratedSecurity=true;

  • @kowsalyahebsheebha868
    @kowsalyahebsheebha868 2 роки тому

    thank you so much 😃