luyy,
Jonathan contacted me regarding your problem and I have been looking into the issue. I think there has been some misundstanding of the actual problem. It is clear from your description of the problem and the sample code you provided that you are specifying a particular server when calling ADODB_New_Connection to create the ADO object. It sounds like you are passing the name of the SQL server you are trying to access. That is not the meaning of this parameter. This parameter is used to indicate the machine that is running the ADO ActiveX server that will host your ADO object. For most applications this is the local machine. You indicate the local machine by just passing the default value of "" for this parameter. Once you have created your ADO object, then you proceed to configure a connection to your SQL server, which is where you provide the SQL server name/database/connection information.
The reason you are seeing a change of behavior from CVI 7.0 to 8.0 is because we fixed a bug in CA_CreateObjectByClassIdEx during that time. The bug was that when you specified a particular server to host the ActiveX object but the local machine could also host the same ActiveX object, the server information was ignored and the object was quietly hosted on the local machine. The fix was to always honor the particular server specified and not create the object on the local machine. Because of the bug in CVI 7.0, the server you specified in the call to ADODB_New_Connection was being ignored and the ADO object was being created on your local machine (which is probably exactly what you want). In CVI 8.0, we honor the server you specified and try to create the ADO object on that server. Of course, this is probably
not what you want and you have probably not setup all the firewall/permissions/DCOM settings necessary to do that. So the creation of the ADO object on the remote server fails and you get the error you have been seeing.
So you should be able to change the server parameter to ADODB_New_Connection to "" and everything should work fine. Let me know if I am misunderstanding the problem.
Hope that helps.
-Jeff