How to Connect to Microsoft SQL Server in NetBeans IDE

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 35

  • @furkanakdag7644
    @furkanakdag7644 25 วันที่ผ่านมา

    Thank you. This video helped me a lot.

    • @CodeJava
      @CodeJava  24 วันที่ผ่านมา

      Glad it helped! You may also find this video helpful: th-cam.com/video/1pA64-foiz8/w-d-xo.html

  • @pacoworld
    @pacoworld 4 ปีที่แล้ว +3

    I think you must also explain where do we get the values Host, Database and Instance Name 4:42

    • @CodeJava
      @CodeJava  4 ปีที่แล้ว

      you're right. I forgot. Thanks for your valuable suggestion.

  • @asapaska1
    @asapaska1 2 ปีที่แล้ว +2

    I am getting error that TCP/IP connection to the host location failed
    Port is open in firewall and SQL is running

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      maybe you need to enable TCP for SQL server. Reference: www.ibm.com/docs/en/sss/3.1.1?topic=install-enabling-sql-server-express-communication-over-tcpip

    • @asapaska1
      @asapaska1 2 ปีที่แล้ว +1

      @@CodeJava I figured it out. SQL Server Browser was turned off

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      @@asapaska1 great to hear that :)

  • @kslai7590
    @kslai7590 2 ปีที่แล้ว

    Hello I'm getting this error "Timeout expired. IDE unable to establish connection. Check your proxy settings or try again later. The server may be unavailable at the moment. You may also want to make sure that your firewall is not blocking network traffic."

  • @stronk_doggo
    @stronk_doggo 3 ปีที่แล้ว +1

    Hello! I am getting this error: Cannot establish a connection to jdbc:sqlserver://{Host Name}\{Instance Name};databaseName=Sample using com.microsoft.sqlserver.jdbc.SQLServerDriver (Login failed for user 'user'. ClientConnectionId:{ID}). I'm new to MS SQL, what should I do? Thanks

  • @madatmovies
    @madatmovies 3 ปีที่แล้ว

    I connect my SQL server to (local) host. How to do it?

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      did you follow the steps explained in this video?

  • @ilavarasansriraman4140
    @ilavarasansriraman4140 4 ปีที่แล้ว +1

    Create tutorial on read PDF using java

    • @CodeJava
      @CodeJava  4 ปีที่แล้ว +1

      I will consider. Could you give some example use cases?

    • @ilavarasansriraman4140
      @ilavarasansriraman4140 4 ปีที่แล้ว

      @@CodeJava just read values from the pdf file using any java API.. And print those values in the console

    • @CodeJava
      @CodeJava  4 ปีที่แล้ว +1

      @@ilavarasansriraman4140 okay, noted.

  • @tamhoangminh197
    @tamhoangminh197 3 ปีที่แล้ว +1

    Are you Vietnamese?

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว +1

      Yes, I am.

    • @tamhoangminh197
      @tamhoangminh197 3 ปีที่แล้ว

      @@CodeJava quầy, đồng hương bác ơi! Em đang bị gặp lỗi trong trường hợp này, bác có thể hộ trợ em với được không ạ, em thử két nối bằng tay cũng như dùng công cụ cũng không được ạ

    • @K1ethoang
      @K1ethoang 2 ปีที่แล้ว

      @@tamhoangminh197 bác fix đc chưa em cũng bị lỗi :((

    • @tamhoangminh197
      @tamhoangminh197 2 ปีที่แล้ว +1

      @@K1ethoang chọn đúng ver driver phù hợp với ver của SQL bác

    • @K1ethoang
      @K1ethoang 2 ปีที่แล้ว

      @@tamhoangminh197 được rồi nè :) oimeoi em định cài lại win :))

  • @danielcisa107
    @danielcisa107 2 ปีที่แล้ว

    Do we guess the SA user password ?

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      No, it's the password you set when installing SQL server.

  • @peddapudisnehalalitha2192
    @peddapudisnehalalitha2192 3 ปีที่แล้ว

    Sir I getting such type of message
    Cannot establish a connection to jdbc:sqlserver://sqlsrv\sqlexpress;database name=EMS using com. Microsoft. sqlserver

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      is the SQL server running?

    • @peddapudisnehalalitha2192
      @peddapudisnehalalitha2192 3 ปีที่แล้ว +1

      @@CodeJava yeah it's running I created database too but cannot establish connect in windows authentication

  • @kL-ss5kc
    @kL-ss5kc 3 ปีที่แล้ว

    @Code Java
    I want to connect to a database Sql Server .
    Located on a server on a local network
    Not on an localhost
    how do I write ??

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว +1

      so you need to specify JDBC URL with SQL authentication. See this article for more details: www.codejava.net/java-se/jdbc/connect-to-microsoft-sql-server-via-jdbc

    • @kL-ss5kc
      @kL-ss5kc 3 ปีที่แล้ว

      @@CodeJava Thanks