Home > Ask the SQL Server Experts > Michael Hotek Questions & Answers > Trying to copy new DLL over old one
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Trying to copy new DLL over old one

Michael Hotek EXPERT RESPONSE FROM: Michael Hotek

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 03 September 2003
I have written an extended stored procedure, and from time to time I make changes to it. I would like to be able to just copy the new DLL on top of the old one, but since it is in use, the OS will not let me. There is a DBCC command to free DLL's, but it does not seem to work. In fact, if I specify an invalid XP name, it still returns with a go response. The only time it returns an error that I can find is when the XP I am trying to release is actually executing. Then it returns a "DBCC cannot free DLL 'XP_Interpolate.dll'. The DLL is in use. DBCC execution completed. If DBCC printed error messages, contact your system administrator." Even when it returns just "DBCC execution completed. If DBCC printed error messages, contact your system administrator." the DLL is not really free, or at least I cannot delete it. Any info would be greatly appreciated.

>
EXPERT RESPONSE

You can't do this. You HAVE to drop the xp, load your new code, and recreate the XP. There is all kinds of plumbing which has to be done in SQL Server that occurs when you register the XP that you can not simply bypass by dumping new code underneath an already existing procedure call.

For More Information


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Michael Hotek
Applying LDF file to MDF without turning it to .BAK first?
Procedure for finding last modified info?
Migrating poorly designed database to new, normalized one
Displaying decimal places in SQL Server 2000
Creating a DTS package
Extracting data without strings converted to strange characters
Money data type conversion issue using DTS
Any way to alias a call to functions?
Repairing corrupt MDF files
In-place versus side-by-side upgrade

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts