Results 1 to 6 of 6

Thread: Help with this error!!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Seattle, WA USA
    Posts
    216

    Exclamation Help with this error!!!

    OK, I'm getting the following error on SQL Server connection in Win98 (referencing ADO 2.5). I DONT get the error in WinXP. I dont know why this is happening:

    Error 430: Class does not support Automation or does not support expected interface.

    VB Code:
    1. Private Sub ConnectDB(ByRef rID3Title, rID3Artist)
    2.  
    3. 768       On Error GoTo DB_err
    4.  
    5.           'DB Connect setting up
    6.           Dim SQLstatement As String
    7.  
    8. 771       SQLCON.ConnectionTimeout = 5  ' Time out for the connection
    9. 772       SQLCON.Provider = "sqloledb"   ' OLEDB Provider
    10. 773       SQLCON.Properties("Network Address").Value = "64.105.xx.xxx,80"  ' set the ip address of your sql server
    11. 774       SQLCON.CommandTimeout = 10 ' set timeout for 3 minutes
    12. 775       SQLCON.Properties("Network Library").Value = "dbmssocn" ' set the network library to use win32 winsock tcp/ip
    13. 776       SQLCON.Properties("Data Source").Value = "SERVER"
    14. 777       SQLCON.Properties("Initial Catalog").Value = "Database"
    15. 778       SQLCON.CursorLocation = adUseServer ' For ADO cursor location
    16.           'SQLCON.Properties("Integrated Security").Value = "SSPI"
    17. 779       SQLCON.Properties("User ID").Value = "xxxxxx"
    18. 780       SQLCON.Properties("Password").Value = "xxxxxx"
    19. 781       SQLCON.Open
    20.  
    21.           'Setup done
    22.  
    23. 782       SQLstatement = "SELECT dbo.Cover.Album, dbo.Cover.Cover, dbo.Artist.URL " _
    24.           & "FROM dbo.Artist INNER JOIN " _
    25.           & "dbo.Cover ON dbo.Artist.Artist = dbo.Cover.Artist INNER JOIN " _
    26.           & "dbo.Track ON dbo.Cover.Album = dbo.Track.Album " _
    27.           & "WHERE (dbo.Track.Track = N'" & Replace(rID3Title, "'", "") & "') AND " _
    28.           & "(dbo.Artist.Artist = N'" & Replace(rID3Artist, "'", "") & " ')"
    29.    
    30. 783       RS.Open SQLstatement, SQLCON
    31.    
    32. 784       Exit Sub
    33.  
    34. DB_err:
    35.  
    36. 792           RS.Close
    37. 793           SQLCON.Close
    38. 794           Set RS = Nothing
    39. 795           Set SQLCON = Nothing
    40. End Sub
    VB6, VB.NET, C#, SQL, XML, ADO.NET, ASP.NET, HTML.
    MCP & A+ Certified. Looking for a job in the Seattle, WA area.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    That usually happens when the project references get screwed up, or if you break compatibility on a project. But unless this is a usercontrol, or a DLL, then you probably don't need to worry about compatibility. Check to see that the 98 machine has the correct version of ADO, or whatever SQLCON is.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Seattle, WA USA
    Posts
    216
    Yea, it is an ActiveX DLL that I am making. I just found out that ADO 2.1 comes on Windows98SE. Does anyone know what version First Edition comes with???
    VB6, VB.NET, C#, SQL, XML, ADO.NET, ASP.NET, HTML.
    MCP & A+ Certified. Looking for a job in the Seattle, WA area.

  4. #4
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    If not 2.1, then probably 2.0.
    They are compatible enough though - shouldn't be a problem.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Seattle, WA USA
    Posts
    216
    VB6 is telling me to install MDAC 2.5 when I have ADO 2.1 as a reference. Unfortuately, its a 10 meg install and I cant have it that big! Is there an alternative to this? How can I connect to my SQL Server using older ADO versions without a huge install.

    Ethan
    VB6, VB.NET, C#, SQL, XML, ADO.NET, ASP.NET, HTML.
    MCP & A+ Certified. Looking for a job in the Seattle, WA area.

  6. #6
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Once you've installed 2.5 on your dev. machine, I don't think you need the whole 10M thing to distribute your code. I could be wrong though...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

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