Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006

    Unanswered: Connecting SQL Server 2005 database with my java program

    Hello, I can a problem with the conection between java aplicattion and SQL SERVER 2005 DATABASE.
    My server name of SQL is PRACTICASINFO\SQLSERVER, and databasename is PGR,

    The code of connection is:

    Class.forName(" verDriver");

    //Specify the ODBC data source
    String sourceURL = "jdbc:sqlserver://PRACTICASINFO\\SQLEXPRESS;DatabaseName=PGR;user=ad min;password=bartolome";

    Connection databaseConnection = DriverManager.getConnection(sourceURL);

    But this is not run, the error is not suitable error or the user admin is not asociatted to secure connection, please help me.

    I´m sorry for my poor english.
    Last edited by sekero; 03-14-06 at 14:44.

  2. #2
    Join Date
    Apr 2005
    Baltimore, MD
    This sounds more like a Windows/SQL server security issue. Ask this in the Microsoft SQL Server forum, or repost with a full copy of the error and stack traces.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts