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. Visual Basic
  4. Problem with Connection string

Problem with Connection string

Scheduled Pinned Locked Moved Visual Basic
helpdatabasesecurity
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.
  • N Offline
    N Offline
    nazimghori
    wrote on last edited by
    #1

    hello every One I am using Password in my access database (.mdb) file i want to pass this password in my connection string I used the string like

    Public cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=True;Data Source='" & Application.StartupPath & "\\pumpproject.mdb;password=pass")
    

    but its not working please suggest some help its an deskstop applcation... Thank You

    D L 2 Replies Last reply
    0
    • N nazimghori

      hello every One I am using Password in my access database (.mdb) file i want to pass this password in my connection string I used the string like

      Public cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=True;Data Source='" & Application.StartupPath & "\\pumpproject.mdb;password=pass")
      

      but its not working please suggest some help its an deskstop applcation... Thank You

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      ConnectionStrings[^]is a good place to begin with.

      It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

      1 Reply Last reply
      0
      • N nazimghori

        hello every One I am using Password in my access database (.mdb) file i want to pass this password in my connection string I used the string like

        Public cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=True;Data Source='" & Application.StartupPath & "\\pumpproject.mdb;password=pass")
        

        but its not working please suggest some help its an deskstop applcation... Thank You

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        check your quotes. :)

        Luc Pattyn


        I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


        Local announcement (Antwerp region): Lange Wapper? Neen!


        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