Results 1 to 9 of 9

Thread: PLZ. HELP with remote DB

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lithuania
    Posts
    36

    PLZ. HELP with remote DB

    [email protected]

    Hi, i wont to know, it's posible to use DB on www.myDB.lt/data.mdb without any SQL server ? PLZ. explain my if it's not posible why.


    P.S sorry for my english
    Fizikas

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Connecting to an Access db over the Internet is a bad idea, but anyways:

    VB Code:
    1. Dim cnn As ADODB.Connection
    2. Dim rs As ADODB.Recordset
    3.  
    4. Set cnn = New ADODB.Connection
    5. Set rs = New ADODB.Recordset
    6.  
    7. Debug.Print cnn.State
    8. cnn.Open "Provider=MS Remote;Remote Server=http://myServer;" _
    9.             & "Remote Provider=Microsoft.Jet.OLEDB.4.0;" _
    10.             & "Data Source=c:\inetpub\wwwroot\biblio.mdb;admin,"
    11. Debug.Print cnn.State
    12.  
    13. rs.Open "SELECT * From Authors", cnn, adOpenKeyset, adLockOptimistic
    14.  
    15. Debug.Print rs.RecordCount

    Try it out. If it doesn't work, I doubt anything's possible for that matter.

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lithuania
    Posts
    36

    refereces

    What kind of refereces i must use?
    Fizikas

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lithuania
    Posts
    36
    i found, but i can Data Source=c:\inetpub\wwwroot\biblio.mdb; line.
    Fizikas

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lithuania
    Posts
    36
    i found reference, but i can understand line: Data Source=c:\inetpub\wwwroot\biblio.mdb;
    Fizikas

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Do you know the location of the MDB file on the server?

    It would make things slightly easier for you if you could create a DSN on that server. Do you have access to its controls, by any chance?

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

  8. #8

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lithuania
    Posts
    36
    I use computer that is conneted to domain. Im trying connect to remote db, i sharing that db with IIS 5.0. When i'm connecting to bd apears error:

    RDS server error:The server has denited accses to the default RDS Handler used to access this page. See the server Administrator for more information about server security settings.


    What's wrong, what must i do ??? PLZ HELP ME !!!!!!!!

    Option Explicit
    Private Sub Command1_Click()
    Dim cnn As ADODB.Connection
    Dim rs As ADODB.Recordset

    Set cnn = New ADODB.Connection
    Set rs = New ADODB.Recordset

    Debug.Print cnn.State
    cnn.Open "Provider=MS Remote;Remote Server=http://MyServername.com;" _
    & "Remote Provider=Microsoft.Jet.OLEDB.4.0;" _
    & "Data Source=c:\wwwroot\biblio.mdb;"
    Debug.Print cnn.State

    rs.Open "SELECT * From Authors", cnn, adOpenKeyset, adLockOptimistic
    Debug.Print rs.RecordCount

    End Sub
    Fizikas

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Fizikas

    RDS server error:The server has denited accses to the default RDS Handler used to access this page. See the server Administrator for more information about server security settings.
    You'll have to contact your server support team, and ask them to grant you remote access to the database.

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