Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. connectionstring "/"

connectionstring "/"

Scheduled Pinned Locked Moved C#
csharpsecurityhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hassanasp
    wrote on last edited by
    #1

    When T try to write connectionstring I have error with c# connectionstring: code C# con.ConnectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Test;Data Source=HASSAN-2D6107E7\SQLEXPRESS"; error message :Error 1 Unrecognized escape sequence but when try to use the same connection string using vb.net no error why dose not c# support "/"?

    Ahmed hassan

    M 1 Reply Last reply
    0
    • H hassanasp

      When T try to write connectionstring I have error with c# connectionstring: code C# con.ConnectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Test;Data Source=HASSAN-2D6107E7\SQLEXPRESS"; error message :Error 1 Unrecognized escape sequence but when try to use the same connection string using vb.net no error why dose not c# support "/"?

      Ahmed hassan

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      hassanasp wrote:

      why dose not c# support "/"?

      It looks like '\' is the problem, not '/'. Maybe try con.ConnectionString=@"Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Test;Data Source=HASSAN-2D6107E7\SQLEXPRESS"; *edit* More info: C# String Literals[^] Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      modified on Wednesday, December 3, 2008 12:17 PM

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups