home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.ms-sqlserver      Notorious Rube Goldberg contraption      19,505 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 18,208 of 19,505   
   Erland Sommarskog to Gene Wirchenko   
   Re: Stored Procedure Code Critique Reque   
   06 Apr 11 23:58:15   
   
   XPost: microsoft.public.sqlserver.programming   
   From: esquel@sommarskog.se   
      
   Gene Wirchenko (genew@ocis.net) writes:   
   >      What I am going to put on top of this is an insert/update trigger   
   > to clean up strings.  Can I call .Net code from within a trigger?   
      
   Yes. I think you would put this in a function, and calling CLR UDF is just   
   the same as calling a T-SQL UDF.   
      
   You can even write triggers directly in the CLR. I will have that I have   
   yet to see a use case for that.   
      
   --   
   Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se   
      
   Links for SQL Server Books Online:   
   SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx   
   SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca