Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9022783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:36:14+00:00 2026-06-16T05:36:14+00:00

I am very new to Java (I am a pure .net guy). I am

  • 0

I am very new to Java (I am a pure .net guy). I am trying to do a SQL Server 2008 database connectivity. Now I am using “jTDS” driver for accomplishing my work.

db.dbConnect(“jdbc:jtds:sqlserver://XXXXXXX\XXXXXXXX/MyDB”,”username”,”password”);

What wrong I am doing in the connectivity? I am getting the below error

enter image description here

I know that it may be a simple problem to solve.
Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:36:15+00:00Added an answer on June 16, 2026 at 5:36 am

    You are confusing the Microsoft SQL Server JDBC driver URL format with that of the jTDS driver.

    The format for jTDS is:

    jdbc:jtds:<server_type>://<server>[:<port>][/<database>][;<property>=<value>[;...]]
    

    In your specific example the correct URL for the database would be:

    jdbc:jtds:sqlserver://IIS08TOPSDEVDB1/SmbCommission;instance=IIS08TOPSDEVDB1
    

    Now as you are connecting using the instance name, you need to make sure that the SQL Server Browser service is running, and that the instance is configured to accept TCP/IP connections. If you don’t (want to) use the SQL Server Browser service, then make sure the instance is configured at a fixed port and specify that port instead of the instance:

    jdbc:jtds:sqlserver://IIS08TOPSDEVDB1:<the-port>/SmbCommission
    

    The other option is to use the Microsoft SQL Server JDBC driver, which has the format:

    jdbc:sqlserver://[serverName[\instanceName][:portNumber]][;property=value[;property=value]]
    

    With that format the correct URL would have been:

    jdbc:sqlserver://IIS08TOPSDEVDB1\IIS08TOPSDEVDB1;databaseName=SmbCommission
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new to Java. There is a Model Server web service, now
Okay, I'm very new to Java so please bear with me. I am using
I am very new to processing.org and Java. I am trying to store objects
I am very new to java and trying to develop an Android app called
I am very new to Java and android. my 1st app using canvas and
I am very new with Java. I am using following code for the calling
I am very new to Java, and trying to use Mathematica's Java interface to
I am very very new to java and trying to extend File class to
I am very new to Java and also Real Time Program. I am trying
I am very new to Java (only been using it for about a week)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.