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 7910153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:45:28+00:00 2026-06-03T12:45:28+00:00

I have installed SQL sever 2008 locally It has many instance. How do I

  • 0

I have installed SQL sever 2008 locally It has many instance. How do I specify the instance name in jdbc string.

when I access the database using MS SQL studio server name looks like mymachinename\mssqlserver1

  • 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-03T12:45:29+00:00Added an answer on June 3, 2026 at 12:45 pm

    Here’s what you find when you google for "SQLServer JDBC URL": http://msdn.microsoft.com/en-us/library/ms378428%28v=sql.100%29.aspx

    The general form of the connection URL is

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

    where:

    • jdbc:sqlserver:// (Required) is known as the sub-protocol and is constant.

    • serverName (Optional) is the address of the server to connect to. This could be a DNS or IP address, or it could be localhost or
      127.0.0.1 for the local computer. If not specified in the connection URL, the server name must be specified in the properties collection.

    • instanceName (Optional) is the instance to connect to on serverName. If not specified, a connection to the default instance is
      made.

    • portNumber (Optional) is the port to connect to on serverName. The default is 1433. If you are using the default, you do not have to
      specify the port, nor its preceding ‘:’, in the URL.

    Note:

    For optimal connection performance, you should set the portNumber when you connect to a named instance. This will avoid a round trip to
    the server to determine the port number. If both a portNumber and
    instanceName are used, the portNumber will take precedence and the
    instanceName will be ignored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 PCs, each one of them has SQL Server 2008 installed on
I have database in sql server 2008. I have installed the MOSS 2007 also
i have many assemblies installed on my sql server 2008, now i want to
I have installed SQL Server 2008 R2 Express on Windows 7. When I run
I have just installed SQL Server 2008 including Reporting Services on Windows Server 2003.
I have a server where I installed SQL Server 2008 and after I applied
I have two servers where I installed SQL Server 2008 Production: RAID 1 on
I have VS 2008 and SQL Server 2005 Developer edition installed on my desktop.
I have both SQL Server 2005 and Visual Studio 2008 installed and think it
I have SQL Server 2000 and 2008 installed on a Windows XP Pro box.

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.