Skip to content

“Cannot load the DLL” Error In SQL Server 2005

October 25, 2008

Sometimes we need to install a dynamic link library to take advantage of extended stored procedure in SQL Server. So you have installed it through the Extended Stored Procedure GUI. You double checked that the dll exists in the MSSQL\Binn directory. But then when you tried to execute the procedure you received this Error: 

Cannot load the DLL C:\Microsoft SQL Server\MSSQL\Binn\dllname.dll, or one of the DLLs it references.

[ A related error has been documented here:  http://support.microsoft.com/default.aspx?scid=kb;en-us;Q151596 ]

Nice! Again you traced back what you did and everything worked out in the development machine. Maybe you’re missing a reference dll. Here’s how you can exactly pinpoint what reference dll you are missing:

You need to download the loadlib.exe and save it on your MSSQL\Binn directory. Then from command line run the executable with this command:

loadlib dllname.dll dllname

An error message should now pop up with the name of the missing reference dll. 

You can download loadlib.exe here.

kick it on DotNetKicks.com

Advertisements
One Comment leave one →
  1. Rahul permalink
    December 21, 2010 2:04 AM

    The post is very informative,knowledge base and very technical.Expected this for a long. Thanks for this blog. Please keep on doing this. So that it will be useful for us to learn dot net easily.

    http://godwinsblog.cdtech.in/2010/12/requested-page-cannot-be-accessed.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

  • Archives


  • RSS SQLServerPedia

  • RSS SQL Crunch – Hot SQL Links

  • My Bookmarks

  • Business Career DBA Tool Events free ebook Humor IT News Members Only Microsoft MySQL Operating System Oracle Personal Reporting Services SQL Server SQLServerPedia Syndication SSC SSIS TSQL Tutorial Uncategorized Video

  • Software Blogs - BlogCatalog Blog Directory
  • %d bloggers like this: