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. protect connection string c# Form to remote sql server 2008

protect connection string c# Form to remote sql server 2008

Scheduled Pinned Locked Moved C#
csharpdatabasesql-serverlinqsysadmin
3 Posts 3 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.
  • M Offline
    M Offline
    mutafa81
    wrote on last edited by
    #1

    Hi I'm using Linq to sql with following Connection string "Data Source=sqlAddress;Initial Catalog=DB;Integrated Security=False;User ID=userName;Password=myPass" Program working fine and I can protect code, string in exe using nonreverse protection but how can i protect that connection string from snifers over TCP Thanks

    D L 2 Replies Last reply
    0
    • M mutafa81

      Hi I'm using Linq to sql with following Connection string "Data Source=sqlAddress;Initial Catalog=DB;Integrated Security=False;User ID=userName;Password=myPass" Program working fine and I can protect code, string in exe using nonreverse protection but how can i protect that connection string from snifers over TCP Thanks

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Without knowing how or why your sending the entire connection string over the network, there's little anyone can tell you of any use.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      1 Reply Last reply
      0
      • M mutafa81

        Hi I'm using Linq to sql with following Connection string "Data Source=sqlAddress;Initial Catalog=DB;Integrated Security=False;User ID=userName;Password=myPass" Program working fine and I can protect code, string in exe using nonreverse protection but how can i protect that connection string from snifers over TCP Thanks

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You can use SSL See Encrypting Connections to SQL Server[^] Btw, it's impossible to hide the connection string from the user running the program.

        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