CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2000
    Location
    Puerto Rico, UAS
    Posts
    4

    HELP! Web DB Connection String

    I'm trying to connect to an Access DB on a Web Server, with DSN Less Connection. This web server lets me use ASP, so I think I can create a client to EDIT Info in my DB.

    I fallowed a sample project with MS OLE DB Provider for Internet Publishing, and I'. able to se de files on the web server.
    But what I really want is to be able to EDIT data.

    What Provider should I use to create a connection, and a record set from my DB?
    What information should I look for on MSDN Library?

    Thanks;

    =EDGARDO=
    Univ. Of Puerto Rico

  2. #2
    Guest

    Re: HELP! Web DB Connection String

    try RDS or OLE DB remote provider !!!
    [email protected]



  3. #3
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: HELP! Web DB Connection String

    If you want to build the recordset on the server side, you can use this for the connection string:

    Dim cn as adodb.connection
    Dim sPathToMDB as string

    sPathToMDB = Server.MapPath("YourMDB.mdb")

    cn.connecionstring = "Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};DBQ=" & sPathToMDB & ";"
    cn.open

    'then just open a recordset the same way as in regular VB.




    Hope this helps,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

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

Featured