<?xml version="1.0" encoding="iso-8859-1"?><rss version="1.0"><channel><title>Diary of soyuj kumar</title><link>http://soyujkumar.rediffiland.com/</link><description>Diary of soyuj kumar</description><language>en-us</language><item><title>CLR Triggers..</title><description><![CDATA[<DIV><FONT size=2><STRONG><U><FONT color=#800080><FONT face="Comic Sans MS"><FONT size=6>CLR </FONT><FONT size=5>Triggers </FONT><FONT size=5>for SQL Server 2005:</FONT></FONT></FONT></U></STRONG> </DIV><BR><P style="MARGIN-BOTTOM: 0in; TEXT-INDENT: 0.5in" align=justify>As I discussed in my <FONT color=#0000ff><U><A href="">previous</A></U></FONT> articles, now Microsoft SQL Server 2005 is integrated with Microsoft .Net Framework common language runtime (CLR), so we can use any .Net Framework language to create database objects. The CLR provides the execution environment for all the server side objects that are created using a .NET language. This means the database developers can now perform tasks that were impossible or difficult to achieve with T-SQL alone. Especially when working with large amounts of server code, developers can easily organize and maintain their code investments. </P><BR><P style="MARGIN-BOTTOM: 0in; TEXT-INDENT: 0.5in" align=justify>This article covers different types of <B>triggers</B> supported by Microsoft SQL Server 2005 with basic ideas about them with an example. At last describes the step-by-step approach to create a CLR trigger (a DML type). </P><BR><H2 class=page-title-western>What is Trigger?</H2><BR><P style="MARGIN-BOTTOM: 0in; TEXT-INDENT: 0.5in" align=justify>A trigger is a Database object just like a stored procedure, or we can say it is a special kind of Stored procedure which fires after (/before) a specified language event executes. More specifically the object which is <B>attached</B> to a <B>Table or View or Database schemas</B> for tracking the operations on them. The main difference between a trigger and a stored procedure is that the former is attached to a table or view and is fired only when an <B>INSERT, UPDATE, and/or DELETE occurs</B>, while a stored procedure executes at any time when it is called. </P><BR><P style="MARGIN-BOTTOM: 0in" align=justify>For more details please visit : <A href="http://aspalliance.com/1273">http://aspalliance.com/1273</A><BR></P><BR><P style="MARGIN-BOTTOM: 0in" align=justify> </P><BR><P style="MARGIN-BOTTOM: 0in" align=justify>Thanks,</P><BR><P style="MARGIN-BOTTOM: 0in" align=justify>Soyuj Kumar.. <A href="http://www.smileycentral.com/?partner=ZSzeb001_ZRxdm103YYIN" target=_blank><IMG height=83 alt=Operator src="http://smileys.smileycentral.com/cat/23/23_33_10.gif" width=83 border=0></A> <BR></P></FONT>]]></description><pubDate>Wed, 11 Jul 2007 14:45:59 +0530</pubDate><link>http://soyujkumar.rediffiland.com/blogs/2007/07/11/CLR.html</link></item><item><title>SQL Server (.Net)</title><description><![CDATA[<DIV><FONT size=2><FONT face="Comic Sans MS"><STRONG><FONT color=#800080><FONT size=4><U>Dtabase</U><U> Functions(CLR) for SQL Server 2005</U> :</FONT></FONT></STRONG></FONT> <BR><P class=MsoNormal nd="1">    <SPAN id=abstract>This article is related to my previous article CLR integration in SQL Server 2005. This contains a step-by-step method of using Visual Studio for creating CLR based database objects. This also explains the method for debugging the managed code for CLR integrated objects and explains the CLR integrated functions. </SPAN></P><SPAN><BR><P class=MsoNormal nd="3">    In this article I am going to discuss how to use Visual Studio 2005 for creating CLR integrated functions. In Visual Studio 2005 there is an option for creating database projects, which is very helpful in this objective.......</SPAN></P><BR><P class=MsoNormal nd="1"><SPAN></SPAN>Please visit for details : <A href="http://aspalliance.com/1157">http://aspalliance.com/1157</A></P><BR><P class=MsoNormal nd="2">Thanks,</P><P class=MsoNormal nd="2">Soyuj Kuamr... <A href="" target=_blank></A> <IMG src="http://immail.rediff.com/htmledit/emoticons/red20.gif"></P></FONT></DIV>]]></description><pubDate>Sat, 31 Mar 2007 12:20:43 +0530</pubDate><link>http://soyujkumar.rediffiland.com/blogs/2007/03/31/SQL-Server.html</link></item><item><title>SQL Server (.Net)</title><description><![CDATA[<DIV><FONT size=2><FONT size=4> <FONT face="Comic Sans MS" color=#800080><STRONG><U>CLR integration in SQL Server 2005</U> :</STRONG></FONT></FONT> <BR><BR><P class=MsoNormal nd="1">    We all know how great T-SQL is for database code, but writing procedural code in T-SQL has always been difficult.  It seems impossible when we need a stored procedure or two, requiring some array-operations, text-parsing or complex math operations.  However, it is quite easy if our Server allows us to deploy C# or VB.NET code that is used within the Server process. In other words, if we need complex procedural code, we can write it as managed code.</P><BR><BR><P class=MsoNormal nd="2">    With the Common Language Runtime (CLR) hosted in Microsoft SQL Server 2005(called CLR integration), we can write stored procedures, triggers, user- defined functions, user-defined types, and user-defined aggregates in managed code.  Because managed code compiles to native code prior to execution, we can achieve significant performance increases in some scenarios.  Thus SQL Server essentially acts as the operating system for the CLR when it is hosted inside SQL Server.........</P><BR><BR><P class=MsoNormal nd="2">Please visit for details : <A href="">http://aspalliance.com/1081</A> </P><BR><BR><P class=MsoNormal nd="2">Thanks,</P><P class=MsoNormal nd="2">Soyuj Kuamr... <IMG src="http://immail.rediff.com/htmledit/emoticons/red18.gif"><A href="" target=_blank></A> </P></FONT></DIV>]]></description><pubDate>Tue, 13 Mar 2007 13:47:46 +0530</pubDate><link>http://soyujkumar.rediffiland.com/blogs/2007/03/13/SQL-Server.html</link></item></channel></rss>