Results 1 to 15 of 15

Thread: How to connect to a database ...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Talking How to connect to a database ...

    Hi.. everyones.

    How i can connect to five pcs to other wich have a database mdb files ...

    I have a Pc with W2000 not server.. and 5 pcs somes with w98 and others WinXP.
    In a WIn2000 pc (ip 173.25.30.65), i have a 4 database mdb files, I need conect 5 pcs to WIN2000 pc using VB6.
    How i can do that..??

    Groval.

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

    Re: How to connect to a database ...

    Is the folder in which the databases reside set up as shareable?

    If not, you can't get to them. If they are, then it should be an easy matter of just connecting to them like you would any network share.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    Tks Hack, i shared the folder named "f" under c:\, but i have some problems with w98 pcs.

    This is the code for my connection:

    sFileName1 = "\\172.24.30.66\F\"
    sFileName2 = "bd\pepo.mdb"

    sFileName = sFileName1 & sFileName2
    cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" _
    & " Data Source= " & sFileName & ";Persist Security Info=False"

    I will appear the error like follow:

    80004005 [Microsoft][ODBC Driver Manager]Data source name not found and no default drive specified

    I will apreciatte some help.!!!

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

    Re: How to connect to a database ...

    It has been a long time since I used Win98. I'm not sure you can make folders sharable on that OS. You need to be running some form of NTFS and I'm not sure if Win95/98 supports that.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    I use a win2000 OS like user...

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    I just intalled a MDAC_TYP_Es file 2,8 version.. on the win98 pcs but not response.. !!

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    there are some pcs with WinXP that work fine...!!!

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

    Re: How to connect to a database ...

    Quote Originally Posted by groval
    there are some pcs with WinXP that work fine...!!!
    And that is because WinXP supports NTFS whereas, as I said, I don't believe Win98 does.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    Yes.. but... look that. Until the past week everything work fine... then i added some lines of code y suddenly the win98 pcs doesnt work... Whats wrong.. ??

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    How i fix that.. i will apreciatte some help or some idea that i can fix my app..!!!

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    I can change my OS to Win98.. or download any emulator file that allow to app work fine.. !! I dont know.. !!

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    this is the error...

    Error 80004005, Microsoft ODBC Driver Manager. Data source name not found and no default driver specifed.

  13. #13
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: How to connect to a database ...

    You might want to map the drive on the W98 machine to the right folder of the db.

  14. #14
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: How to connect to a database ...

    I think sFileName1 = "\\172.24.30.66\F\" won't work with Jet engine on win98. As dglienna already said try mapping it with a drive letter.

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Posts
    91

    Re: How to connect to a database ...

    thanks to everybody..

    I fix the error maping the drive.. I put a drive unit (P:\) and voilá !! Working !! thanks again..


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