Results 1 to 2 of 2

Thread: ASP and Database (Microsoft)

  1. #1
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default ASP and Database (Microsoft)

    Is there anyway that i can get data from a database.

    i just need to know how as i don't know how thanks.

  2. #2
    Join Date
    Oct 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Hi, you can use this connection string to connect to a database.

    Dim strConn
    'Open Connection to the database
    strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("otcstatus.mdb") & ";"

    objRS.Open strSql, strConn

    This wont actually do anything besides open the database connection. If you would like to print database information to the screen you will need a little more code.
    Hope this helps but if not, take a look at this site:
    http://www.w3schools.com/asp/asp_intro.asp/
    Cheers

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •