Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Connection String for Sql Server

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Connection String for Sql Server

    Hai,

    Can anyone pls tell me how to give connection string for sqlserver?My Code is:

    String connectionUrl = "jdbc:sqlserver://192.168.1.44;databaseName=FleetTracking;integrated Security=true;";

    But i got error:
    Login failed for user 'VERTEX-83\Guest'. ClientConnectionId:a87aab19-dde9-4a3c-807e-243fbc39bcbe

    Pls tell me what is the mistake and solution.Thanks in Advance


  2. #2

    Default Re: Connection String for Sql Server

    which authentication mode is your SQL server using? I guess it is using SQL mode so integratedSecurity=true does not make sense. Try to use user and password in the connection URL.

Similar Threads

  1. connection to a database on another computer(server)
    By myke in forum JDBC & Databases
    Replies: 12
    Last Post: May 31st, 2012, 03:09 AM
  2. ...CONNECTION OF CLIENT AND SERVER RUNNING ON DIFFERENT COMPUTERS
    By baraka.programmer in forum Java Networking
    Replies: 1
    Last Post: August 9th, 2011, 07:11 AM
  3. Server/clients connection periodically ask for a file
    By akis3110 in forum Java Theory & Questions
    Replies: 2
    Last Post: June 28th, 2011, 08:06 AM
  4. Replies: 0
    Last Post: May 10th, 2011, 07:02 AM
  5. Replies: 0
    Last Post: March 26th, 2011, 11:07 AM