Results 1 to 4 of 4

Thread: Database connections

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    Database connections

    * Resolved *

    Sure is easier doing this on the localhost. Since I can't delete the post...... If anyone was looking for a
    generic sort of connection, this is what worked.

    VB Code:
    1. Dim strOle As String = "db/imagegallery.mdb"
    2. 'where db is the name of your folder holding the access database
    3. Dim conn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;
    4. Data Source=" & Server.MapPath(strOle))
    5. '...........and on to the command

    Originally the connection was in web.config and the db functions in a separate class.
    Last edited by Rocketdawg; Jun 14th, 2005 at 01:53 PM. Reason: Resolved

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