Saving Database Connection using Config.ini

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Denden
    New Member
    • Aug 2014
    • 33

    Saving Database Connection using Config.ini

    Ive been searching tutorial on youtube and other known sites on how to save/read the database connection on the config.ini file. Lets say i have this connection,
    Code:
    SQLServer:192.168.1.2
    UserName:sa
    Password:1234
    DatabaseName:SampleDB
    i find it easy to configure my connection if it would be setup that way but i find a hard time getting a tutorial for that. What would be the things to need if ill be setting up the connection that way. Thanks.
  • Joseph Martell
    Recognized Expert New Member
    • Jan 2010
    • 198

    #2
    Can you clarify what you are specifically having a difficult time with? Reading and writing an ini file with the correct format? Dealing with the default XML-based config file format that .net uses?

    Comment

    • Denden
      New Member
      • Aug 2014
      • 33

      #3
      i am now using app.config. Thanks btw. Cheers

      Comment

      Working...