how? please tell me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mabzkie
    New Member
    • Jan 2007
    • 19

    how? please tell me

    how to connect to a remote database using an ado? what are the codes? someone help me please.
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Originally posted by mabzkie
    how to connect to a remote database using an ado? what are the codes? someone help me please.
    Hi there,

    Kindly refer to below, change your connectiong string as below, hope it helps. Good luck & Take care.

    Code:
    oConn.Open "Provider=MS Remote;" & _ 
               "Remote Server=http://myServerName;" & _
               "Remote Provider=Microsoft.Jet.OLEDB.4.0;" & _
               "Data Source=c:\somepath\mydb.mdb", _
                "admin", ""

    Comment

    • mabzkie
      New Member
      • Jan 2007
      • 19

      #3
      thank you for the code, i tried it but there's an error "cannot connect to server." so what do you think is wrong?

      Comment

      Working...