Results 1 to 5 of 5

Thread: Machine name on Network

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    Machine name on Network

    Hi

    Is it possible to access a machine on a LAN via a *.ini file??

    Thanks
    Holly
    ** HOLLY **

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Machine name on Network

    Access how?

    What would an .ini file contain? The machine name or something?

  3. #3

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    Re: Machine name on Network

    We have just implemented a new system at work and I have to integrate an old VB labelling system with this new system...The main HMI system will sit on our network and allocated a machine number.......the machine in question will contain a SQL DB with certain information that I need to obtain.....the SQL DB has a UN and PWD so I think instead of using a INI file to access the server would I just use the Machine name... i.e

    [DataBase Parameters]
    SERVER= this would be replaced with [Machine Name]
    DataBaseName=
    USERNAME=
    PASSWORD=

    or am I totally wrong....??

    thanks
    ** HOLLY **

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Machine name on Network

    So you need to access an SQL Server database, right?

    You should be able to just use a connection string which contains the UserName and Password, and do the entire thing through code without the need for an ini file. These files are nothing but text files and as such, probably shouldn't contain information such as passwords anyway as they would be so very easy to open with any standard text editor (like Notepad).

  5. #5

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    Re: Machine name on Network

    Cheers Hack !!!

    ** HOLLY **

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