HighTechTalks DotNet Forums  

how to register an assembly that uses ADODB

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss how to register an assembly that uses ADODB in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
DMurray
 
Posts: n/a

Default how to register an assembly that uses ADODB - 12-19-2007 , 02:11 PM






Hello,

I have an assembly that references a COM DLL that uses ADODB. It runs
properly when run from a regular .Net program, but I need it to run from SQL
Server 2005.
When I try to register the assembly it gets an error because it cannot find
adodb.dll. When I try to register adodb.dll in the Microsoft.Net folder, I
get an error telling me that adodb.dll was created using an older version of
..Net, and it has not been tested in the SQL Server version of the CLR.

Can I use an assembly that uses traditional ADO withing SQL Server 2005?

Thanks,
Dave

Reply With Quote
  #2  
Old   
Brian Muth
 
Posts: n/a

Default Re: how to register an assembly that uses ADODB - 12-19-2007 , 05:00 PM







"DMurray" <DMurray (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

I have an assembly that references a COM DLL that uses ADODB. It runs
properly when run from a regular .Net program, but I need it to run from SQL
Server 2005.
When I try to register the assembly it gets an error because it cannot find
adodb.dll. When I try to register adodb.dll in the Microsoft.Net folder, I
get an error telling me that adodb.dll was created using an older version of
.Net, and it has not been tested in the SQL Server version of the CLR.

Can I use an assembly that uses traditional ADO withing SQL Server 2005?
adodb is unmanaged code. I'm not a SQL Server 2005 expert, but I believe that SQL Server 2005 will complain if you try to call a
..NET object that in turn calls unmanaged code.

We worked around this by changing our .NET object to an Enterprise Component. Because it runs in a COM+ environment in a separate
process, we have no problems calling the .NET object from SQL Server.

You may want to confirm this in one of the SQL Server discussion groups.

Brian




Reply With Quote
  #3  
Old   
Phil Wilson
 
Posts: n/a

Default Re: how to register an assembly that uses ADODB - 12-21-2007 , 05:06 PM



The answer might be no..
http://support.microsoft.com/kb/318559
--
Phil Wilson
[MVP Windows Installer]

"DMurray" <DMurray (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

I have an assembly that references a COM DLL that uses ADODB. It runs
properly when run from a regular .Net program, but I need it to run from
SQL
Server 2005.
When I try to register the assembly it gets an error because it cannot
find
adodb.dll. When I try to register adodb.dll in the Microsoft.Net folder,
I
get an error telling me that adodb.dll was created using an older version
of
.Net, and it has not been tested in the SQL Server version of the CLR.

Can I use an assembly that uses traditional ADO withing SQL Server 2005?

Thanks,
Dave



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.