SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Adding an Extended stored procedure


Adding an Extended stored procedure

Author
Message
Stuart Davies
Stuart Davies
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5273 Visits: 4685
I am having some problems creating / using an extended stored procedure. (SQL 2005 sp 4) When trying to create a test environment, I knew that an extended procedure was needed which used dll xp_CTNHashProc.dll. So I duly ran :-
EXEC dbo.sp_addextendedproc N'xp_ctnhash', 'D:\Microsoft SQL Server\MSSQL.1\MSSQL\xp_CTNHashProc.dll'


Then ran some code from the live server to prove the extended stored procedure was created correctly. It wasn’t, and returned :-
"Cannot load the DLL 'D:\Microsoft SQL Server\MSSQL.1\MSSQL\xp_CTNHashProc.dll', or one of the DLLs it references."

So then I ran sp_helpextendedproc and my extended stored proc was there alongside it was the dll it should reference.

Running DBCC dllname (FREE)
Reports that “DBCC cannot free the DLL "xp_CTNHashProc.dll". The DLL is not loaded”


Does anyone have any ideas as to what is happening and how I can resolve it?
Thanks
Stuart

-------------------------------
Posting Data Etiquette - Jeff Moden
Smart way to ask a question

There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
I would never join a club that would allow me as a member - Groucho Marx
Stuart Davies
Stuart Davies
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5273 Visits: 4685
A bit of an update.

I have now found that the reason is one of the servers (where the dll works OK) is 32 bit, the other is 64.

I can only find one version on line for the 64 bit dll - this unfortunately does not work.

So my original question should now be:- Where can I get a 64 bit version of the DLL all google searches seem to take me to the same dll.

-------------------------------
Posting Data Etiquette - Jeff Moden
Smart way to ask a question

There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
I would never join a club that would allow me as a member - Groucho Marx
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search