Results 1 to 2 of 2
  1. #1
    pbaudru is offline Member
    Join Date
    Jan 2010
    Location
    Athus - Belgium
    Posts
    23
    Rep Power
    0

    Smile SQL server express edition connection

    Hi,

    I'm a new JAVA developer and I'm having some basic problems.

    The server name is : PC346519167106\SQLEXPRESS but when I put in my code String dbUrl = "PC346519167106\SQLEXPRESS"; I have the following error in eclipse editor:

    Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )

    If I can not use '\' to set dburl, how can I correct this ? Changing Server name on SQL SERVER ? How can I do this ?

    I have the same fot the user name string (PC346519167106\Patricia e Pierre).

    Best regards.

    Pierre.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    \ is a special character. Escape it with another \ to get "PC346519167106\\SQLEXPRESS"

Similar Threads

  1. Replies: 4
    Last Post: 09-07-2010, 06:51 AM
  2. Remote SQL Server Connection
    By saso1310 in forum JDBC
    Replies: 2
    Last Post: 05-15-2009, 07:39 AM
  3. Connection the sql server
    By Preethi in forum New To Java
    Replies: 7
    Last Post: 06-26-2008, 03:05 PM
  4. Sql server connection problem
    By tanvirtonu in forum JDBC
    Replies: 1
    Last Post: 03-31-2008, 12:46 PM
  5. Replies: 3
    Last Post: 11-03-2007, 01:58 PM

Posting Permissions

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