Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Assemblies in SQL server 2005 Expand / Collapse
Author
Message
Posted Tuesday, September 11, 2012 10:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, November 2, 2012 4:20 AM
Points: 4, Visits: 10
Hi All,

I have created a new assembly in the sql server database, by using the below code below:

--Create the required assemblies
CREATE ASSEMBLY ISOSUniversalComponent
FROM '\\172.33.54.59\po\Component\DotNetComponent.dll' /*The path were the DLL is copied*/
WITH PERMISSION_SET = UNSAFE;
GO

Now i wanna view the assembly created, so how to view the code for the created assembly in sql server 2005?

Thanks in Advance,
Arun
Post #1357781
Posted Wednesday, September 12, 2012 2:52 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 8:55 AM
Points: 2,873, Visits: 5,185
List of assemblies can be found in SSMS under [Database]/Programmability/Assemblies. You can right-click and generate CREATE script or else.
Also, you can "select * from sys.assemblies" to see all registered assemblies in database.
What do you mean by "view the code for the created assembly in sql server"?
You cannot see the code itself, as assembly is compiled into DLL and code is not placed into SQL server itself, registration of assembly creates the reference to DLL - that's it.


_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)

How to post your question to get the best and quick help
Post #1357842
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse