#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    6
    Rep Power
    0

    Question connecting to database with ASP?


    I need to write an application that connects to a database. I've done a couple with an absolute connection line C://inetpub ... etc, but they were just local test examples.

    This will be different as the box the database will be on will act as as webserver. So I'm thinking of using the Server.MapPath method ... is this the proper way to write the connection?

    I figure that this way, no matter who access the ASP page from the web and from wherever, the server will use the relative connection string from Server.MapPath and find the database right?

    Or am I on glue?
  2. #2
  3. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    24
    A good start, well it helped me no end:

    http://www.activeserverpages.com/learn/dbopen.asp

IMN logo majestic logo threadwatch logo seochat tools logo