CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Starting an SQL Server Application

    Just wondering what methodology most people use when starting up a SQL Server App.

    Eg, Where do you store the SQL Server Name, Database Name, Database User Name, and Password (or the fact it is Windows Authenticated)

    I came to the conclusion that an INI file or equivalent would be best, with Encryption on User Passwords (if they exist).

    I have had problems when storing this type of info in the registry, particularly when you need to run a variety of Databases for support and demonstration purposes (always needing to change the registry to get something to work)

    What do you all do please ?

  2. #2
    Join Date
    Jan 2006
    Location
    Pearl of the orient
    Posts
    304

    Re: Starting an SQL Server Application

    INI file here assuming it is VB6.0.

  3. #3
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Re: Starting an SQL Server Application

    I use VB6 and VB.Net - either way - an INI file to me is just a Text File with the file type INI

    I actually store my variables with XML tags

  4. #4
    Join Date
    Jul 2004
    Location
    Jakarta, Indonesia
    Posts
    596

    Re: Starting an SQL Server Application

    now the trend is move from desktop to Web app..web.config is the right file for this

    right now i'm using .ini file too and it's great

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL

  5. #5
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Starting an SQL Server Application

    To a large degree it depends on the language, and the intent.

    Classig choices are:

    a) INI file
    b) Registry Setting

    More "Modern" Choices:

    c) Plain XML configuration file
    d) Secure Encrpyted XML Config File
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  6. #6
    Join Date
    Jan 2006
    Location
    Pearl of the orient
    Posts
    304

    Re: Starting an SQL Server Application

    If you have time you could take a look at this.

  7. #7
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Re: Starting an SQL Server Application

    Thanks guys - most appreciated

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured