Results 1 to 9 of 9

Thread: dee bee connection

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586

    Cool dee bee connection

    Greetings,

    Hey, i'm trying to set aconnectin string wth the database with this command:

    Set cnn = Server.CreateObject("ADODB.Connection")


    I get the error 424"object Required" on that line.

    I do have the compoonent

    Microsoft ADO Data Control 6.0 (SP4)(OLEDB)

    selected,as well as the reference files


    Microsoft Active X Data objects (Multi-dimensional)2.5 Library
    Microsoft Active X Data objects 2.5 Library

    CAn someone please clarify my understanding, or tell me what i'm dong wrong.

    Thank you,
    Jim

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    "Set cnn = Server.CreateObject("ADODB.Connection")" is ASP code. You need to use VB code instead:

    VB Code:
    1. Set cnn = CreateObject("ADODB.Connection")


    VB does not have a Server object.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586
    Originally posted by mlewis
    "Set cnn = Server.CreateObject("ADODB.Connection")" is ASP code. You need to use VB code instead:

    VB Code:
    1. Set cnn = CreateObject("ADODB.Connection")


    VB does not have a Server object.

    I do believe you are THEE man. Thank you!!! Be on alert for more database questions, in this thread, in the very near future as I figure out the rest of successfully connecting to a database.
    Jim

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    VB Code:
    1. Dim cnn as New ADODB.Connection
    2.  
    3. cnn.Open ' Add path here
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586

    Re: Well

    Originally posted by James Stanich
    VB Code:
    1. Dim cnn as New ADODB.Connection
    2.  
    3. cnn.Open ' Add path here
    Been there done that, thank's for the anticipation. That make me in the mood for heinz ketchup; remeber the song "Anticipation" for the commercial? Ahh... I'm off subject. Thanks though, odds are I'll have more dee bee quetions as I try to hash out the program this weekend.
    Take care,
    Jim

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Re: Re: Well

    Originally posted by JimMuglia
    Been there done that, thank's for the anticipation. That make me in the mood for heinz ketchup; remeber the song "Anticipation" for the commercial? Ahh... I'm off subject. Thanks though, odds are I'll have more dee bee quetions as I try to hash out the program this weekend.
    Take care,
    Jim
    What do you mean here? To slow for you?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586

    Re: Re: Re: Well

    Originally posted by James Stanich
    What do you mean here? To slow for you?
    Jim,

    I was making a joke about the song "Anticiapation", by Carly Simon, as it was used in a Heinz ketchup commercial back in the 70s.

    Also, I was saying that I may have more database questions this weekend, realted to my VB project, as I do my program some more.

    Thank you,
    Jim

  8. #8
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Sorry, misunderstood what you meant...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2002
    Posts
    586

    Re: Well

    Originally posted by James Stanich
    Sorry, misunderstood what you meant...
    I dunno, it might take me awhile to get over it.










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