Click here to Skip to main content
15,888,126 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
CREATE ASSEMBLY failed because it could not open the physical file (The device is not ready
CREATE ASSEMBLY ROCEventHandler
AUTHORIZATION dbo
FROM 'C:\WINDOWS\assembly\a.dll'
WITH PERMISSION_SET = SAFE
GO
Posted
Updated 22-Nov-19 8:30am
v2

you may try looking at this MSDN Link

How to: Create and Run a SQL Server User-Defined Function by using Common Language Run-time Integration

As as side not.. make sure that you have created that Assembly first before trying to reference it in the way you are doing in your current code..also make sure that assembly does not reference other assemblies otherwise you will need to create those assemblies first as well..

Make sure the assembly is created in the directory you are looking for in Z: prior to referencing as well
 
Share this answer
 
make sure that the windows user mssqlserver has at least read access to the dll
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900