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. Database & SysAdmin
  3. Database
  4. SQL CONNECTION STRING

SQL CONNECTION STRING

Scheduled Pinned Locked Moved Database
questiondatabasesql-serversysadminsecurity
5 Posts 5 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.
  • G Offline
    G Offline
    greekius
    wrote on last edited by
    #1

    when i use oledb connection with following connectionstring, i can connect to SQL SERVER named DOCTOR "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR" but when i use SQLCLIENT.SQLCONNECTION with following string, i cant connect what is missing?:S "Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"

    C N M S 4 Replies Last reply
    0
    • G greekius

      when i use oledb connection with following connectionstring, i can connect to SQL SERVER named DOCTOR "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR" but when i use SQLCLIENT.SQLCONNECTION with following string, i cant connect what is missing?:S "Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      greekius@hotmail.com wrote:

      i cant connect what is missing?:

      A password?


      Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

      1 Reply Last reply
      0
      • G greekius

        when i use oledb connection with following connectionstring, i can connect to SQL SERVER named DOCTOR "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR" but when i use SQLCLIENT.SQLCONNECTION with following string, i cant connect what is missing?:S "Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        DON"T CROSS POST YOUR QUESTIONS :mad:


        only two letters away from being an asset

        1 Reply Last reply
        0
        • G greekius

          when i use oledb connection with following connectionstring, i can connect to SQL SERVER named DOCTOR "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR" but when i use SQLCLIENT.SQLCONNECTION with following string, i cant connect what is missing?:S "Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"

          M Offline
          M Offline
          Member_3269611
          wrote on last edited by
          #4

          Hi, I think this will help to u Cstring="Server=;DataBase=DOCTOR;UID=sa;PWD=" Pandian S

          1 Reply Last reply
          0
          • G greekius

            when i use oledb connection with following connectionstring, i can connect to SQL SERVER named DOCTOR "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR" but when i use SQLCLIENT.SQLCONNECTION with following string, i cant connect what is missing?:S "Persist Security Info=False;User ID=SA;Initial Catalog=LASEREPI;Data Source=DOCTOR"

            S Offline
            S Offline
            S Douglas
            wrote on last edited by
            #5

            greekius@hotmail.com wrote:

            ;User ID=SA;

            Your connecting to a database using SA? :eek: That is VERY unsecure! Highly unrecommended. Connection strings http://www.connectionstrings.com/[^]


            I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

            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