Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / December 2007

Tip: Looking for answers? Try searching our database.

how to register an assembly that uses ADODB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DMurray - 19 Dec 2007 19:11 GMT
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
Brian Muth - 19 Dec 2007 22:00 GMT
> Hello,
>
[quoted text clipped - 7 lines]
>
> 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
Phil Wilson - 21 Dec 2007 22:06 GMT
The answer might be no..
http://support.microsoft.com/kb/318559
Signature

Phil Wilson
[MVP Windows Installer]

> Hello,
>
[quoted text clipped - 14 lines]
> Thanks,
> Dave

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.