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. ado and .ini files

ado and .ini files

Scheduled Pinned Locked Moved Visual Basic
databasehelpquestion
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi there, I need some help with ADO. Right now i have a program written in VB using ADO. I have the connection string hard coded to a specific database. How do make it so the ado will look in an ini at the second line and change the connection string to the one in the ini file. Do i have to remove the connection string in the program? Please help.

    D 1 Reply Last reply
    0
    • L Lost User

      Hi there, I need some help with ADO. Right now i have a program written in VB using ADO. I have the connection string hard coded to a specific database. How do make it so the ado will look in an ini at the second line and change the connection string to the one in the ini file. Do i have to remove the connection string in the program? Please help.

      D Offline
      D Offline
      David Wengier
      wrote on last edited by
      #2

      If the connection string has been entered into a property in the properties window, you will need to delete it. Then, you will have to read in the ini file yourself (using either standard file access methods, or GetPrivateProfileString API call) and set the ConnectionString property to be the string that is read out. ADO wont automatically go looking in an ini file. -- David Wengier Sonork ID: 100.14177 - Ch00k

      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