Results 1 to 14 of 14

Thread: [RESOLVED] multiuser system

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Resolved [RESOLVED] multiuser system

    i have competed a vb .net and access project . in the codes i have given the database path as d:/purchase/database.mdb
    now what i want is that i keep the database file on a system in the d drive and purchase folder and it can be accesed thruogh my project from other system so that all the change in the database are reflected to every user .
    plz help
    regard
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    i have changed my coon string to

    VB Code:
    1. con1.Open("Provider=MS Remote;" & _
    2.                            "Remote Server=http://192.168.0.100;" & _
    3.                            "Remote Provider=Microsoft.Jet.OLEDB.4.0;" & _
    4.                            "Data Source=e:\purchase\Database.mdb;Jet OLEDB:Database Password=emgee1")

    now it is giving error internet client error connection reset
    plz tell me what to do
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: multiuser system

    You just can't put a file in to some location and expect that other PCs on the network can find and use it... The directory needs to be shared and security permission needs to be set.

    1. Make the folder that contains your database a shared folder, and give it a sharename.
    2. Set appropriate share and security permissions.
    3. In your connection string, point the database location (data source =\\YourPCName\SharedFolderName\thedatabase.mdb)

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    do the server need to have IIS installed for the above purpose
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  5. #5
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: multiuser system

    Quote Originally Posted by elixir_5000
    do the server need to have IIS installed for the above purpose
    Nope... IIS is needed if you plan on making that server a web server, application server or terminal server only.

  6. #6
    Lively Member
    Join Date
    Oct 2006
    Posts
    86

    Re: multiuser system

    Also, it would be better to put that path into a variable and store it in an xml file or application setting. This way it can be changed without changing your code. I make it a practice of never hardcoding anything that is actually an environmental variable that could change based in the network setup of the customer. Even if you have to go back to storing settings in an INI file (lol) it would be better than hardcoding it.

    Dustin
    http://www.helpmehackyou.com

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    Some one plz guide me i am using the following code to connect with my server but its giving eror cannot connect to server but i can manually connect to server. plz guide me what to do i am really stuck.
    regards


    VB Code:
    1. con1.Open("Provider=MS Remote;" & _
    2.                           "Remote Server=http:\\192.168.0.100;" & _
    3.                          "Remote Provider=Microsoft.Jet.OLEDB.4.0;" & _
    4.                         "Data Source=" & "\\server\purchase\Database.mdb" & ";Jet OLEDB:Database Password=emgee1")
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    i want to connect to network computer where lies my ms access database plz guide to write connection string
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    if i am connecting by using server name then it says error business object cannot be created plz help people
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    if i use the folloing code as said bu si the geek in a different thread then it i giving error that " cannot start your application workgroup detail file is missing or is opened exclusively by someone"


    VB Code:
    1. Con1.Open("Provider=Microsoft.Jet.OLEDB.4.0;" & _
    2.                 "Data Source=\\Server\purchase\database.mdb;" & _
    3.                 "User Id=emgee;Password=6673;" & _
    4.                 "Persist Security Info=False")
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  11. #11
    Addicted Member effekt26's Avatar
    Join Date
    Nov 2006
    Posts
    138

    Re: multiuser system

    i think there could be an error in your connection string...

    www.connectionstring.com will give u a great resource for any type of connectionstring you will need.

    i beleive you are after this string. substitute your values into the string, and tell us how you go..

    With password
    This is the connection string to use when you have an access database protected with a password using the Set Database Password function in Access.
    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;Jet OLEDBatabase Password=MyDbPassword;
    Note, source can be \\server\purchase\Database.mdb

    and if the share is ntfs drive, ensure that the user has access to that share (sharing and access permissions)

    Thanks, Justin

  12. #12
    Addicted Member effekt26's Avatar
    Join Date
    Nov 2006
    Posts
    138

    Re: multiuser system

    sorry, didnt read the other posts. Can u post a snippet of the error.

    Thanks

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    here is the screen shot of my error plz help
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    146

    Re: multiuser system

    the best way i found is that work a bit hard and use odbc
    VB Code:
    1. Con1.ConnectionString = "DSN=database;PWD=emgee1;"
    Using VB.NET 2003/.NET 1.1

    If you found a post useful then please Rate it!
    Please mark you thread resolved using the Thread Tools above

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