Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 CREATE ASSEMBLY

Author  Topic 

SreenivasBora
Posting Yak Master

164 Posts

Posted - 2010-02-02 : 15:10:03
Guy,

Can any one help me, Any PERFORMANCE/SECURITY issues on SQL server side while using ASSEMBLY instead of Stored procedures?

Regards
SREENI

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-02-03 : 20:48:11
There could be, depends on the CLR code.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2010-02-04 : 05:34:43
An assembly is a compiled .dll while a stored procedure might get recompiled numerous times during runtime so I guess the answer is that an assembly is by "default" faster. But as Tara says it all depends on the coding...if your .NET-coding sucks and your SQL coding rocks then the answer might be different.

- Lumbago
If the facts don't fit the theory, change the facts. Albert Einstein
Go to Top of Page

SreenivasBora
Posting Yak Master

164 Posts

Posted - 2010-02-17 : 12:43:15
Our functionality is very stright forward.

Developer written .Net dll (Purpose is: DLL to do the Xml validation using XSD and then applying XSLT as these things can’t be easily written in T-SQL ) and placed it as an assembly on SQLServer, accessing this assembly from SSIS package / 3rd party applciations. In order to perform this, we need to change/enable the default settings of database (such as “SET TRUSTWORTHY ON”) and SQL Server configuration. (“Enable CLR engine”).

Before doing the changes, I would like to know is there any IMPACTS / disadvantages to enable these features on PROD server(s)?
OR thinking ... ask developer to look for better solution than this!!!

Any help, most welcome.

Regards
SREENI


With Regards
SR
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-02-17 : 16:13:49
There are performance and security implications to consider with CLR objects, especially since you need to use TRUSTWORTHY option.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -