Results 1 to 3 of 3

Thread: Please help, I really am in need of answer

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    101

    Please help, I really am in need of answer

    I am trying to connect to a file DSN.

    Set cn = Server.CreateObject("ADODB.connection")
    cn.Open "FILEDSN=sample.dsn"

    But i am not able to get the ADODB objects.
    for example i was not able to get the "connection" object in the above sample code.
    I did give the Active X data objects 2.5 reference.


    Thanks

  2. #2
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    How did you determin that you didn't get ADODB object? Did you get any error messages? Just a blank page?
    How do you give references?

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Posts
    20
    i think your code should be...
    set ConnectionToDatabase=Server.CreateObject"ADODB.Connection")
    connectionToDatabase.Connectiontimeout=60
    connectionToDatabase.Open "DSN=singletable"

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