Results 1 to 4 of 4

Thread: Connecting to acces base on server

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3

    Question

    hi

    I have just started learning asp and i have made one small program that puts different stuff in an acces base. It worked fine, when i tried it on my comp using that virtual web server, but then when i upload it, i dont know how to write my connection string.

    set Conn = server.createobject("ADODB.Connection")
    conString = "Driver={Microsoft Access Driver (*.mdb)} <- dont know what else to write here

    Conn.Open conString


  2. #2
    New Member
    Join Date
    Aug 2000
    Posts
    10
    All you need to add is the location of your database.

    conSting = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\yourfolder\yourdatabase.mdb"

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3
    the problem is how to write that, if i have it on one server and i dont know the whole dir structure. Should i use smt with the dns of the server or what?

  4. #4
    New Member
    Join Date
    Aug 2000
    Posts
    10
    Can you not make a ODBC Data Source and then reference that DSN, so when you open the datatbase it would look like

    db.Open "YourDSN"


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