What is 'Class not registered'?

Results 1 to 3 of 3

Thread: What is 'Class not registered'?

  1. #1
    blk Guest

    Default What is 'Class not registered'?

    I&#039m trying to connect to a DNS using ConnectionName.Open "MyDatabase" but I keep getting a error that says:<BR><BR>Provider error &#039 80040154&#039 <BR>Class not registered <BR><BR>Any thoughts?<BR>

  2. #2
    Mark Guest

    Default RE: What is 'Class not registered'?

    Show the code that defines the object variable named "ConnectionName".

  3. #3
    Join Date
    Dec 1969

    Default RE: You must create the object prior to Opening

    Quick Example<BR><BR>Set MyDatabase = "DSN=SQL;uid=sa;pwd="<BR>Set ConnectionName = server.createobject("adodb.connection")<BR>Connect ionName.Open MyDatabase<BR>SQL_Code="Select * From MyTable"<BR>Set MyRecords=ConnectionName.Execute(SQL_Code)<BR><BR> Do Something.......with MyRecords("MyField")<BR><BR>ConnectionName.Close<B R>Set ConnectionName=Nothing

Posting Permissions

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