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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:19:23+00:00 2026-05-29T12:19:23+00:00

Am trying to use MSSQL server with Play Framework, In my application.conf db.url=jdbc:microsoft:sqlserver://localhost\SQL2008:1433;DatabaseName=testDB db.driver=com.microsoft.jdbc.sqlserver.SQLServerDriver

  • 0

Am trying to use MSSQL server with Play Framework, In my application.conf

    db.url=jdbc:microsoft:sqlserver://localhost\SQL2008:1433;DatabaseName=testDB
    db.driver=com.microsoft.jdbc.sqlserver.SQLServerDriver
    db.user=sa
    db.pass=sa

Am getting this below error

Database error
A database error occured : Cannot connected to the database, [Microsoft][SQLServer    
2000 Driver for JDBC]Error establishing socket.

play.exceptions.DatabaseException: Cannot connected to the database, [Microsoft]   
[SQLServer 2000 Driver for JDBC]Error establishing socket.
at play.db.DBPlugin.onApplicationStart(DBPlugin.java:132)
at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:425)
at play.Play.start(Play.java:495)
at play.Play.detectChanges(Play.java:599)
at play.Invoker$Invocation.init(Invoker.java:186)
at Invocation.HTTP Request(Play!)
 Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error    
 establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)

I have added sqljdbc4.jar to lib folder.
even tried using mssqlserver.jar,msutil.jar,msbase.jar

  • 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-05-29T12:19:24+00:00Added an answer on May 29, 2026 at 12:19 pm

    May be useful for someone,looking for MSSQL along with play.

    First download jtds

    copy jtds jar file to

       play-1.2.3\framework\lib
    

    as well as your application lib folder

    restart play

    In your application.conf

       # If you need a full JDBC configuration use the following :
       db.url=jdbc:jtds:sqlserver://localhost:1433/testDB;instance=SQL2008
       db.driver=net.sourceforge.jtds.jdbc.Driver
       db.user=sa
       db.pass=sa
    

    Start Playing 🙂

    Update For Play2

    Add play dependencies to your Build.scala like this

     val appDependencies = Seq(
        "net.sourceforge.jtds" % "jtds" % "1.2"
      )
    

    There is change in conf file in Play2…

       db.default.url="jdbc:jtds:sqlserver://localhost:1433/testDB;instance=SQL2008"
       db.default.driver=net.sourceforge.jtds.jdbc.Driver
       db.default.user=sa
       db.default.pass=sa
    

    restart play SBT will download dependencies for you. Start Playing 🙂

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

Sidebar

Related Questions

I use a mssql 2008 server (at my webhotel) and I am trying to
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on
I am just trying to use mysql with rails with a mongrel server. I
I'm trying to use this script (which extracts the domain from a URL): CREATE
Alright wasted hours and hours trying to get MSSQL Server 2008 to login via
I'm trying to move a java application from an old server to a new
I'm trying to use odbc to connect some erlang code to a mysql server.
I am trying to connect to a MySql server (not localhost) from my computer
I am trying to use the MS SQL Server 2005 Import/Export tool to export
I am trying to use MySql Connector 6.2.2.0 for membership and role providers. The

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.