<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://barmagy.com/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server</title><link>http://barmagy.com/blogs/karim/default.aspx</link><description /><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Debug Build: 60217.2664)</generator><item><title>How to assign a strong name key to 3rd party assembly?</title><link>http://barmagy.com/blogs/karim/archive/2008/05/21/1403.aspx</link><pubDate>Wed, 21 May 2008 18:00:00 GMT</pubDate><guid isPermaLink="false">6f955cd0-92ea-460f-9cfe-3201e711ce4e:1403</guid><dc:creator>Karim</dc:creator><slash:comments>1</slash:comments><comments>http://barmagy.com/blogs/karim/comments/1403.aspx</comments><wfw:commentRss>http://barmagy.com/blogs/karim/commentrss.aspx?PostID=1403</wfw:commentRss><description>&lt;DIV&gt;I faced this problem during working and I found that I have two approaches to acheive this :&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;either I ask the 3rd party developer to assign strong name to the dll or you do the following:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;you should use Ildasm.exe tool to dissamble the *.exe or *.dll assembly to *.il and *.res (compile resource script) &lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;you can find Ildasm.exe tool at this path on your machine &lt;FONT color=#c0504d&gt;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#c0504d&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;open the *.exe or *.dll assembly you want using the IL DASM and follow the images to dissamble the file&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://blufiles.storage.live.com/y1pAQK0VuzXRSfvS8mPvJFa7q2MBiHYzYYlEbD1v-nnE2llFpfzLVV482VjfjUepO-SclyZ4nzsjrk" target=_blank&gt;&lt;IMG height=181 alt=img1 src="http://blufiles.storage.live.com/y1pAQK0VuzXRSfvS8mPvJFa7q2MBiHYzYYlEbD1v-nnE2llFpfzLVV482VjfjUepO-SclyZ4nzsjrk" width=200&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://blufiles.storage.live.com/y1pAQK0VuzXRScPlqJeYspl_6bmJEHEyGCkEngmSeAdf8aEsGeW3g_yuVrBD2O1NX703Ajgbim8ieY" target=_blank&gt;&lt;IMG height=180 alt=img2 src="http://blufiles.storage.live.com/y1pAQK0VuzXRScPlqJeYspl_6bmJEHEyGCkEngmSeAdf8aEsGeW3g_yuVrBD2O1NX703Ajgbim8ieY" width=201&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://blufiles.storage.live.com/y1pAQK0VuzXRSer_umo1JpORV5rfK4z52ZYa48Tb9RaKalxE3ltNVZu940iV4rzYnRSlNM0Cnq6quM" target=_blank&gt;&lt;IMG height=200 alt=img3 src="http://blufiles.storage.live.com/y1pAQK0VuzXRSer_umo1JpORV5rfK4z52ZYa48Tb9RaKalxE3ltNVZu940iV4rzYnRSlNM0Cnq6quM" width=172&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;then you reassemble the *.il file again using Ilasm.exe and passing to it the strong name you desire and here is the code&lt;/DIV&gt;
&lt;DIV&gt;you can find Ilasm.exe tool at this location &lt;FONT color=#c00000&gt;C:\WINDOWS\Microsoft.NET\Framework\[your version of asp.net] Ex. v2.0.50727&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;first you will need to create your strong name key using sn.exe tool which you will find it in this location &lt;FONT color=#c0504d&gt;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#c0504d&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;so to create a strong name key type in the visual studio 2005&amp;nbsp;command prompt the following sn.exe -k name_of_the _key.snk.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;after you create the strong name key you will find in this location &lt;/FONT&gt;&lt;FONT color=#595959&gt;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;then use the Ilasm.exe to reassemble the *.il file again by typing the following&amp;nbsp;code in the visual studio 2005 command prompt Ilasm.exe filename.il&amp;nbsp;/key:name_of_the_strongnamekey.snk this will generate *.exe file from the *.il&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;if you want to generate *.dll file you will have to add the following option /dll to the code to be like this &amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;Ilasm.exe filename.il&amp;nbsp;/dll /key:name_of_the_strongnamekey.snk&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;refernces:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#595959&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/aa309387(VS.71).aspx"&gt;&lt;FONT color=#c50000&gt;http://msdn.microsoft.com/en-us/library/aa309387(VS.71).aspx&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/496e4ekx(VS.80).aspx"&gt;&lt;FONT color=#c50000&gt;http://msdn.microsoft.com/en-us/library/496e4ekx(VS.80).aspx&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/f7dy01k1(VS.80).aspx"&gt;&lt;FONT color=#c50000&gt;http://msdn.microsoft.com/en-us/library/f7dy01k1(VS.80).aspx&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;img src="http://barmagy.com/aggbug.aspx?PostID=1403" width="1" height="1"&gt;</description></item><item><title>Reporting services and IIS default Web Site Identifier</title><link>http://barmagy.com/blogs/karim/archive/2008/03/31/1193.aspx</link><pubDate>Mon, 31 Mar 2008 18:20:00 GMT</pubDate><guid isPermaLink="false">6f955cd0-92ea-460f-9cfe-3201e711ce4e:1193</guid><dc:creator>Karim</dc:creator><slash:comments>0</slash:comments><comments>http://barmagy.com/blogs/karim/comments/1193.aspx</comments><wfw:commentRss>http://barmagy.com/blogs/karim/commentrss.aspx?PostID=1193</wfw:commentRss><description>&lt;FONT face=Verdana color=#ff0000 size=2&gt;SQL Server Reporting Services cannot use the Default Web site because it has an identifier that the SQL Server Reporting Services setup cannot handle. You can either reinstall IIS to have IIS create the Default Web site, or modify the IIS metabase by changing the identifier for Default Web site to 1.&lt;/FONT&gt; 
&lt;DIV class=bvMsg id=msgcns!81C4EE2B88262802!559&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;When you see this error and you want to change the IIS default web site identifier to 1, use the following steps: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Click &lt;STRONG&gt;Start --&amp;gt; Run --&amp;gt; &lt;/STRONG&gt;type the following: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#004080&gt;CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs STOP_SERVER W3SVC/&lt;B&gt;old_identifier_number&lt;/B&gt;&lt;BR&gt;CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs MOVE W3SVC/&lt;B&gt;old_identifier_number&lt;/B&gt; W3SVC/&lt;B&gt;new_identifier_number&lt;/B&gt;&lt;BR&gt;CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs START_SERVER W3SVC/&lt;B&gt;new_identifier_number&lt;/B&gt;&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;&lt;FONT color=#004080&gt;Hint:&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;FONT color=#004080&gt;Replace &lt;EM&gt;old_identifier_number &lt;/EM&gt;with the old id of the web site&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#004080 size=2&gt;Replace&lt;EM&gt; new_identifier_number &lt;/EM&gt;with the new id of the web site&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;img src="http://barmagy.com/aggbug.aspx?PostID=1193" width="1" height="1"&gt;</description></item><item><title>IE Transitions (Nice Stuff)</title><link>http://barmagy.com/blogs/karim/archive/2007/11/21/891.aspx</link><pubDate>Wed, 21 Nov 2007 10:25:00 GMT</pubDate><guid isPermaLink="false">6f955cd0-92ea-460f-9cfe-3201e711ce4e:891</guid><dc:creator>Karim</dc:creator><slash:comments>0</slash:comments><comments>http://barmagy.com/blogs/karim/comments/891.aspx</comments><wfw:commentRss>http://barmagy.com/blogs/karim/commentrss.aspx?PostID=891</wfw:commentRss><description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;I've read a blog post for &lt;/FONT&gt;&lt;A href="http://www.nikhilk.net/"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;U&gt;Nikhil Kothari&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; , he was talking about &lt;/FONT&gt;&lt;A href="http://www.nikhilk.net/Fajax.aspx"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;U&gt;Fajax&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; or the fake&amp;nbsp;AJAX which he means the code that you write to simulate the effect of the AJAX but it ain't AJAX, so i liked the idea and i've searched for most of these effects that you can embbed in your site and gives you the feeling that there is AJAX in your site &lt;/FONT&gt;&lt;/STRONG&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;H1&gt;&lt;FONT face=Verdana size=2&gt;Enable page transitions&lt;/FONT&gt;&lt;/H1&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;When you want to see page transitions you must have enabled them with: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;Tools - Options - Advanced - Browsing - Enable page transitions &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Applying a transition&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;You apply a transition by added a special META tag to the heading of your page: For a page exit transition you use: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;META http-equiv=Page-Exit content=progid:DXImageTransform.Microsoft.RandomDissolve(Duration=2)&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Blinds&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Blinds(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Blinds(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: bands (default=10), Direction (default="down"), Duration ( no default) &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Barn&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Barn(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Barn(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, motion, orientation (default="vertical") &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;CheckerBoard&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.CheckerBoard(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.CheckerBoard(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: Direction (default="right"), squaresX (default=12), squaresY (default=10) &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Fade&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Fade(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Fade(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, overlap (default=1.0) &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;GradientWipe&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.GradientWipe(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.GradientWipe(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, gradientSize (default=0.25), motion &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Inset&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Inset(Duration=2)"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Inset(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Iris&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Iris(Duration=2)"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Iris(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, irisStyle (default="PLUS"), motion &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Pixelate&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Pixelate(Duration=2)"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Pixelate(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, maxSquare (default=25) &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;RadialWipe&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.RadialWipe(Duration=2)"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.RadialWipe(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, wipeStyle (default="CLOCK") &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;RandomBars&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.RandomBars(Duration=2)"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.RandomBars(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, orientation (default="horizontal") &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;RandomDissolve&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.RandomDissolve(Duration=2)"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.RandomDissolve(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Slide&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Slide(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Slide(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: bands (default=1), duration, slideStyle (default="SLIDE") &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Spiral&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Spiral(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Spiral(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, gridSizeX (default=16), gridSizeY (default=16) &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Stretch&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Stretch(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Stretch(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, stretchStyle (default="SPIN") &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Strips&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Strips(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Strips(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, motion &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Wheel&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Wheel(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Wheel(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, spokes (default=4) &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;ZigZag&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;lt;meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.ZigZag(Duration=2)"&amp;gt;&lt;BR&gt;&amp;lt;meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.ZigZag(Duration=2)"&amp;gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Properties: duration, gridSizeX, gridSizeY &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;Property descriptions&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;bands&lt;/STRONG&gt; (integer)&lt;BR&gt;Sets or retrieves the number of strips into which the content is divided during the transition. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Direction&lt;/STRONG&gt; (string)&lt;BR&gt;Sets or retrieves the direction of motion in the transition. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Direction:&amp;nbsp; "up" | "down" | "right" | "left"&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Duration&lt;/STRONG&gt; (floating point)&lt;BR&gt;Sets or retrieves the length of time the transition takes to complete. The value is specified in seconds.milliseconds format (0.0000). &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;gradientSize&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the percentage of the object that is covered by the gradient band. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Floating-point that specifies or receives a value that can range from 0.0 to 1.0.0.0 the gradient band has no width as new content is revealed. &lt;BR&gt;0.0 the gradient band has no width as new content is revealed. &lt;BR&gt;0.25 Default. 25% of the object is covered by a gradient band. &lt;BR&gt;1.0 100% of the object is covered by a gradient band. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;gridSizeX&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the number of grid columns used for the filter. The value can range from 1 to 100. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Integer that specifies or receives the number of grid columns. 16 Default.&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;gridSizeY&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the number of grid rows used for the filter. The value can range from 1 to 100. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Integer that specifies or receives the number of grid rows. 16 Default.&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;irisStyle&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the shape of the Iris filter aperture. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;String that specifies or receives one of the following values: DIAMOND Diamond-shaped aperture. &lt;BR&gt;CIRCLE Circular aperture. &lt;BR&gt;CROSS X-shaped aperture. &lt;BR&gt;PLUS Default. Plus sign-shaped aperture. &lt;BR&gt;SQUARE Square aperture. &lt;BR&gt;STAR Star-shaped aperture. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;maxSquare&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the maximum width in pixels of a pixelated square. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Integer that specifies or receives a width that can range from 2 to 50 pixels.50 Default.&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;motion&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the value that indicates whether new content is revealed from the outside or the inside first. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;"out" Default. The transition moves from the center of the object toward the borders of the object. &lt;BR&gt;"in" The transition moves from the borders of the object toward the center. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;orientation&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the value that indicates whether the filter effect is horizontal or vertical. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;"horizontal" Transition lines are horizontal. &lt;BR&gt;"vertical" Transition lines are vertical. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;overlap&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the fraction of the transition's duration that both original and new content are displayed. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Floating-point that specifies or receives a value that can range from 0.0 to 1.0.&lt;BR&gt;1.0 Default.&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;slideStyle&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the method used to reveal the new content. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;String that specifies or receives one of the following values:&lt;BR&gt;HIDE Default. Slides bands of original content out, exposing new content. &lt;BR&gt;PUSH Slides bands of new content in, pushing original content out. &lt;BR&gt;SWAP Alternating bands expose new content, or push original content out, at the same time. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;spokes&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the number of wedges that the content is divided into during the transition. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Integer that specifies or receives one of the following possible values:&lt;BR&gt;2 - 20 Number of moving spokes that divide the content into wedges. &lt;BR&gt;4 Default. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;squaresX&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the number of columns for the CheckerBoard transition. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Integer that specifies or receives any positive value greater than or equal to 2. 12 Default.&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;squaresY&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the number of rows for the CheckerBoard transition. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Integer that specifies or receives any positive value greater than or equal to 2. 10 Default.&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;stretchStyle&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the method used to reveal the new content. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;String that specifies or receives one of the following possible values:&lt;BR&gt;HIDE Stretches new content over original content from left to right. &lt;BR&gt;PUSH Stretches new content in and squeezes original content out, moving from left to right. This motion resembles a cube rotating from one face to another. &lt;BR&gt;SPIN Default. Stretches new content over original content from the center outward. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;wipeStyle&lt;/STRONG&gt;&lt;BR&gt;Sets or retrieves the method used to reveal the new content. &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;String that specifies or receives one of the following possible values. CLOCK Default. Sweeps around the center, clockwise from the top. &lt;BR&gt;WEDGE Sweeps around the center in both directions from the top. &lt;BR&gt;RADIAL Sweeps from the top to the left side, with one end of the sweep anchored on the upper left corner. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I hope&amp;nbsp;this helps :)&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;img src="http://barmagy.com/aggbug.aspx?PostID=891" width="1" height="1"&gt;</description></item><item><title>Reporting Services 2005 Critical Issue</title><link>http://barmagy.com/blogs/karim/archive/2007/11/21/890.aspx</link><pubDate>Wed, 21 Nov 2007 10:24:00 GMT</pubDate><guid isPermaLink="false">6f955cd0-92ea-460f-9cfe-3201e711ce4e:890</guid><dc:creator>Karim</dc:creator><slash:comments>0</slash:comments><comments>http://barmagy.com/blogs/karim/comments/890.aspx</comments><wfw:commentRss>http://barmagy.com/blogs/karim/commentrss.aspx?PostID=890</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;We have faced a little problem in here with the reporting services 2005; suddenly it starts to log errors in the event log without no good reason.&lt;BR&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Here is the error: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT color=#ff0000&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;EM&gt;Error rsReportServerDisabled : The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content and then restart the service&lt;/EM&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;After we've made investigations about this error it appears that it's cause was the changing of the user that was running the reporting services successfully.&lt;BR&gt;&lt;BR&gt;when you want to change the user that running the reporting services... there are some steps to do first to avoid seeing that error. &lt;/FONT&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;How to Change Service Accounts Using the Reporting Services Configuration Tool&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Use the following steps to reconfigure the Report Server Windows service account: Start the Reporting Services Configuration tool and connect to the report server. For more information, see How to: Launch Reporting Services Configuration. On the Windows Service Identity page, specify the new account and password. Click Apply. When prompted to backup the symmetric key, type a password and file name for the symmetric key backup, and click OK. Each step in the service account update is recorded in the tasks panel at the bottom of the page. The Report Server Windows service will be stopped and restated during the account update. Errors that might occur include login failures (for example, if you mistype an account or password). In the unlikely event that the symmetric key is not restored, you can perform this step yourself clicking Restore in the Encryption Keys page. To verify that the account has been reset properly, open a report that uses stored credentials. If you cannot restore a backup copy of the key, you must delete the encrypted content. For more information, see &lt;/FONT&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms156010.aspx"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;U&gt;Deleting and Re-creating Encryption Keys&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; ,&lt;/FONT&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms157275.aspxhttp://"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;U&gt;Backing Up and Restoring Encryption Keys&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; but i don't recommend that try to run this command in the command utility: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;C:\Program Files\Microsoft SQL Server\80\Tools\Binn&amp;gt; rsactivate -r -c"C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config"&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;you should substitute your installation location with mine in the above command. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I hope this helps, if not and try this &lt;/FONT&gt;&lt;A href="http://support.microsoft.com/kb/842421/#appliestohttp://"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;U&gt;solution&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;, if not and you can drop down the changing user issue; try to start the service with the previous user that used to run successfully and everything will be Ok. &lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://barmagy.com/aggbug.aspx?PostID=890" width="1" height="1"&gt;</description></item><item><title>Undocumented Stored Procedures</title><link>http://barmagy.com/blogs/karim/archive/2007/11/21/889.aspx</link><pubDate>Wed, 21 Nov 2007 10:21:00 GMT</pubDate><guid isPermaLink="false">6f955cd0-92ea-460f-9cfe-3201e711ce4e:889</guid><dc:creator>Karim</dc:creator><slash:comments>0</slash:comments><comments>http://barmagy.com/blogs/karim/comments/889.aspx</comments><wfw:commentRss>http://barmagy.com/blogs/karim/commentrss.aspx?PostID=889</wfw:commentRss><description>&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;How many of you wants to run a script on the whole tables in the database and don't want to do this manually???&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;well I'm one of those people who would like some sort of stored procedures which loops in all tables and apply the same script on all the tables so I've searched for this and finally I found the Undocumented SQL System Stored Procedures, they are punch of system Stored procedures which very helpfull and effective, I'll state down here two of'em and you can see the rest from &lt;/FONT&gt;&lt;A href="http://www.mssqlcity.com/Articles/Undoc/SQL2000UndocSP.htm"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;U&gt;here&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;sp_MSforeachdb&lt;/FONT&gt;&lt;/H2&gt;&lt;FONT face=Verdana size=2&gt;Sometimes, you need to perform the same actions for all databases. You can create cursor for this purpose, or you can also use the &lt;B&gt;sp_MSforeachdb&lt;/B&gt; stored procedure to accomplish the same goal with less work.&lt;BR&gt;&lt;BR&gt;For example, you can use the &lt;B&gt;sp_MSforeachdb&lt;/B&gt; stored procedure to run a CHECKDB for all the databases on your server:&lt;BR&gt;&lt;BR&gt;&lt;I&gt;EXEC sp_MSforeachdb @command1="print '?' DBCC CHECKDB ('?')"&lt;/I&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;
&lt;H2&gt;&lt;FONT face=Verdana size=2&gt;sp_MSforeachtable&lt;/FONT&gt;&lt;/H2&gt;&lt;FONT face=Verdana size=2&gt;Sometimes, you need to perform the same actions for all tables in the database. You can create cursor for this purpose, or you can also use the &lt;B&gt;sp_MSforeachtable&lt;/B&gt; stored procedure to accomplish the same goal with less work.&lt;BR&gt;&lt;BR&gt;For example, you can use the &lt;B&gt;sp_MSforeachtable&lt;/B&gt; stored procedure to rebuild all the indexes in a database:&lt;BR&gt;&lt;BR&gt;&lt;I&gt;EXEC sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?')"&lt;/I&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;img src="http://barmagy.com/aggbug.aspx?PostID=889" width="1" height="1"&gt;</description></item><item><title>How you detect the time leakage in your SSIS Package and How can you optimize it? </title><link>http://barmagy.com/blogs/karim/archive/2007/11/21/888.aspx</link><pubDate>Wed, 21 Nov 2007 10:13:00 GMT</pubDate><guid isPermaLink="false">6f955cd0-92ea-460f-9cfe-3201e711ce4e:888</guid><dc:creator>Karim</dc:creator><slash:comments>0</slash:comments><comments>http://barmagy.com/blogs/karim/comments/888.aspx</comments><wfw:commentRss>http://barmagy.com/blogs/karim/commentrss.aspx?PostID=888</wfw:commentRss><description>&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;This article is talking about the optimization of the SSIS, &lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;I've attended three sessions for &lt;/FONT&gt;&lt;A href="http://www.sqlservercentral.com/columnists/sjones/sqlserverspotlightondonaldfarmer.asp"&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;U&gt;Donald Farmer&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;, Principal Program Manager for Microsoft SQL Server Integration Services in Microsoft Redmond,Seattle in the MDC 2007 for the Middle east developers which was held in Cairo International Conference Center; the three sessions were :&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;UL&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;High Performance Data Integration with SQL Server Integration Services&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;LI&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;Using Analysis Services and Data Mining to understand your customers&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;FONT face=Verdana size=2&gt;Reporting Services, Report Builder and Sharepoint&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;I'll talk in here about the first session which was from my point of view the most intresting, First he described the difference between the DTS and the SQL Server Integration Services and it's Huge from my experience in this field and then He described the &lt;STRONG&gt;OVAL&lt;/STRONG&gt; Concept which He meant with it the following:&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;&lt;STRONG&gt;O --&amp;gt; Operations&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;&lt;STRONG&gt;V --&amp;gt; Volume&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;&lt;STRONG&gt;A --&amp;gt; Application&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;L --&amp;gt; Location &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;Let's discuss each and everyone of these factors:&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;&lt;STRONG&gt;Operations:&lt;/STRONG&gt; All the operations that happens during the data transfer whether it was defined or hidden done by the system.&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;&lt;STRONG&gt;Volume:&amp;nbsp;&lt;/STRONG&gt;The Volume of the data that will be transfered, it differs whether&amp;nbsp;i'm&amp;nbsp;movind a large amount of data ( Millions of rows )&amp;nbsp;or small amount (hundreds) in the time it takes to&amp;nbsp;be moved.&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;&lt;STRONG&gt;Application:&amp;nbsp;&lt;/STRONG&gt;We have to take care which application we will use to move the data , if&amp;nbsp;we are moving a bulk amount of data without doing any operations , we can&amp;nbsp;use BCP instead of SQL Server Integration Services , becasue it will saves us time.&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;&lt;STRONG&gt;Location: &lt;/STRONG&gt;&amp;nbsp;We have to the Source and Destination , the Type of network between them and the type of the Harddisk we are using in both places , cause may be when i change the hardware we save time and this for many company will be very benificial.&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;so the conclusion is that we have to take care of these four factors when we design a SSIS package.&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;The second thing that i want to talk about is &lt;STRONG&gt;How you detect the time leakage in your Package and How can you optimize it?&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;Donald Farmer has described this nice method of calculating the time of execution in the package and how can we detect the leakage;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;first we run the package as it is and we see the execution time it takes let assume that it took 29 sec&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;then the STD execution time was 29 sec&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;SPAN&gt;&lt;FONT face=Verdana size=2&gt;Secondly we replace the destination with the Row Count component which is very useful component in here; it just count rows and we see the execution time of the package without the destination let's assume its gonna be&amp;nbsp;20 sec then STC took 20 sec to caluculate the time the data took to be transfered to the destination D = STD - STC= 29-20 =9 sec&lt;BR&gt;To calculate the source time, you will Replace the destinaiton and the operations with the Row Count Component and execute the package and let's caluclate the execution time, let's assume it will be 15 sec; so we know now that the source took about 15 sec then by small mathematical operation we will know that the Operations took T = STC - SC= 20-15 = 5 sec &lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;To Optimize this Integaration Package let's analyze the situation , I guess that the operations doesn't take much time and the destination too, may be If we investigated more we will find that the problem issued from the Old Hard disk we use in the source which tooks us too much time to read the data , so it won't matter how much time and money we invest to develop a new package the problem will still in the old harddisks so if we replaced them with a new one the performance will be enhanced significantly.&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN&gt;This was the end of the session I hope you like it as I did.&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;SPAN&gt;&lt;FONT face=Verdana size=2&gt;Thank you Donald.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://barmagy.com/aggbug.aspx?PostID=888" width="1" height="1"&gt;</description></item><item><title>SQL CLR Integartion</title><link>http://barmagy.com/blogs/karim/archive/2007/11/21/887.aspx</link><pubDate>Wed, 21 Nov 2007 09:27:00 GMT</pubDate><guid isPermaLink="false">6f955cd0-92ea-460f-9cfe-3201e711ce4e:887</guid><dc:creator>Karim</dc:creator><slash:comments>0</slash:comments><comments>http://barmagy.com/blogs/karim/comments/887.aspx</comments><wfw:commentRss>http://barmagy.com/blogs/karim/commentrss.aspx?PostID=887</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Today I'll demonstrate a very nice feature that has been added recently in Microsoft SQL Server 2005 which is SQL CLR Integration. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Well many will ask what is the SQL CLR , It’s the possibility to deploy C# or VB.NET code that is used within the SQL Server process. this means that if you need complex procedural code, you can write it as managed code and of course it has plenty of benefits : &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;¨T-SQL is interpreted and hence slower. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;¨Error handling in T-SQL was frankly abysmal (although it has improved in SQL Server 2005) &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;¨String handling in T-SQL is un-optimized and slow &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;¨SQL-CLR is compiled so faster &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;¨SQL-CLR lets you take advantage of the huge base class library &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;and now I'll show you a small demonstration on how you create a SQL CLR project: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;first of all you should have Microsoft SQL Server 2005 Installed and Microsoft Visual Studio 2005. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;you should enable the SQL CLR feature by clicking &lt;STRONG&gt;Start --&amp;gt; All Programs --&amp;gt; Microsoft SQL Server 2005 --&amp;gt; Configuration Tools --&amp;gt; SQL Server Surface Area Configuration --&amp;gt; &lt;/STRONG&gt;click on &lt;STRONG&gt;Surface Area Configuration for features --&amp;gt;&lt;/STRONG&gt;you will find in the left pane &lt;STRONG&gt;MSSQLSERVER&lt;/STRONG&gt; underneath it &lt;STRONG&gt;Database Engine &lt;/STRONG&gt;underneath it you will find &lt;STRONG&gt;CLR Integration --&amp;gt; &lt;/STRONG&gt;select it and Check it from the right pane. &lt;/FONT&gt;
&lt;BLOCKQUOTE&gt;
&lt;P align=left&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;my Example is so simple imagine that we have a table that we need to capture what is inserted in it on insertion and pass it to a web service to through it into another database, I chose web service particularly because it will give the opportunity to do anything you with the captured data so let's open the Visual&amp;nbsp;Studio 2005 from &lt;STRONG&gt;Start --&amp;gt; All Programs --&amp;gt; Visual Studio 2005 --&amp;gt;&lt;/STRONG&gt; click on&amp;nbsp;&lt;STRONG&gt;File--&amp;gt; New&amp;nbsp;Project &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSerLeUg_nBTEY5ktxI_vbGSw1SnHr0y75A6frl85iwrppuGDMy_24U0HjicmMS0O2E" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img1 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRScvXMgTwr3SMZAkbJsKwhZ4kH8gFzTI9XATd1812Xx7FS3XlEAF2WmAWod5G2uuUzY" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Choose SQL Server project from the Database Template under the Visual C# template and write in the &lt;STRONG&gt;Name&lt;/STRONG&gt; "CLRDemo" , save it where ever you like and click &lt;STRONG&gt;OK.&lt;/STRONG&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;The &lt;STRONG&gt;Add database Reference &lt;/STRONG&gt;window will open to create the database reference you want to connect to ... &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRScC7W6Z1sICWkShqPNWzIn5djTqljrS-fb_h57E_JfLz4O_AxkwwHwhID4EhX4_lK8" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img2 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSfNf7-MoUYOTt9WH109jJ0MdsiMXTWkNfE28niv76LNfTVWBW4_9aQKy-gMWBxcsQk" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Click on &lt;STRONG&gt;Add New Reference&lt;/STRONG&gt; to add Reference to "Northwind" Database ... &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSe8ftMh_1VFgFkVRUYQjfR-4Sv7shuKUTg0b4zjMyEtjrFrPTA0_vRZH4OoBG7Grpo"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;A new Database Reference Window will open type the SQL Server name in the &lt;STRONG&gt;Server Name&lt;/STRONG&gt; textbox and Select "Northwind" database from the &lt;STRONG&gt;Select or enter a database Name &lt;/STRONG&gt;drop down , click on &lt;STRONG&gt;Test Connection&lt;/STRONG&gt; button to make sure that the connection is successful , click &lt;STRONG&gt;Ok&lt;/STRONG&gt;, Click&amp;nbsp;&lt;STRONG&gt;OK.&lt;/STRONG&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSeQ8tNhD2pqeyWJvgrDoTwvtIXAzYCnWfwQh2ebOfuc7YeRZ0WcDu3MewYI9BBIbk4" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img4 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSfp8VqMSfSkmQj_LfnQUXdM9YnFu-DM2AkK3pYqh8XdPeEH41Uh-DgBVNhArO_ByuU" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Right click on the &lt;STRONG&gt;Solution Icon &lt;/STRONG&gt;"CLR Demo" on the right pane&amp;nbsp; and click &lt;STRONG&gt;Add Trigger&lt;/STRONG&gt; , &lt;STRONG&gt;Add New Item&lt;/STRONG&gt; Window will appear with the trigger class selected , type in the &lt;STRONG&gt;Name&lt;/STRONG&gt; "CustomersTrigger.cs" &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSc4ningdAoP7abfiMxPmHEPPBEIA3Mly2j3llYIJOIwyz3E5sPX00JMubmbtyrXFEw" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img5 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSciAf4bIc9BqbGB5ohi9P-j5pOdGTSHzjYDxGpPhDMxypQ6wueVndxeKuFc9Q0Ui_Q" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;and click &lt;STRONG&gt;Add&amp;nbsp; &lt;/STRONG&gt;the Trigger class will be added to the project as shown in the figure below. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;let's create our web service that we will pass to it the captured inserted values to insert them into another database. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;click on &lt;STRONG&gt;File&lt;/STRONG&gt; --&amp;gt; &lt;STRONG&gt;Add --&amp;gt;&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;New Web Site &lt;/STRONG&gt;&amp;nbsp;--&amp;gt; choose &lt;STRONG&gt;ASP.NET Web Service&lt;/STRONG&gt; Template make sure that the selected Language is C# and change the name of the Project to "PassValues" and Click &lt;STRONG&gt;OK&lt;/STRONG&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSdF4Um0AB0ZAHgJ2YYwpH6SeX4fhoXhRdhWN0n1Seiy8TBj7AhNUN_isWb5fsWHJOA" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img8 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSd9N9ql-Hn0seh2fDzLsdWY-RfUXcyWXQpJRL1gvTJoYsaUJ3IeGGtFFfHirsCzS_4" width=567 border=0&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;The Web Service Project will be added to our solution as intended now , let's add our connection string value in the "Web.config" file in the Web service Project so right click on the Web Service Project&amp;nbsp;and&amp;nbsp;click on &lt;STRONG&gt;add New Item&lt;/STRONG&gt; and choose &lt;STRONG&gt;Web Configuration File&lt;/STRONG&gt; from the &lt;STRONG&gt;Add New Item&lt;/STRONG&gt; Window and Click &lt;STRONG&gt;Add&lt;/STRONG&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSeIs7xo7RI-WrYhhEzvldyRGx6hh6K_VGyxktHeIWI8pVVma5BJrcqyX0E14lwTZCg" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img9 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSdpY5zgIW2M010f0KgDMfCC6QUeG16Fez3JAb3hlKRFefFLXnfehvOsc8eB8TbHOE0" width=567 border=0&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;double click on the "Web.Config" file and&amp;nbsp;replace the following code &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;&amp;lt;connectionStrings/&amp;gt;&lt;/STRONG&gt; Tag &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;BR&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connectionStrings&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="SQLcon" connectionString ="uid=your_username;pwd=database Password;data source=.;Initial Catalog=database_name"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;this connection string that I've just wrote down is the one that the web service will connect on to throw the captured inserted data by our trigger. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;to make&amp;nbsp;the web Service&amp;nbsp;work successfully&amp;nbsp;you will have to run the following script in your SQL Server &lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;USE [Northwind]&lt;BR&gt;GO&lt;BR&gt;/****** Object:&amp;nbsp; Table [dbo].[Users]&amp;nbsp;&amp;nbsp;&amp;nbsp; Script Date: 09/06/2007 12:43:59 ******/&lt;BR&gt;SET ANSI_NULLS ON&lt;BR&gt;GO&lt;BR&gt;SET QUOTED_IDENTIFIER ON&lt;BR&gt;GO&lt;BR&gt;SET ANSI_PADDING ON&lt;BR&gt;GO&lt;BR&gt;CREATE TABLE [dbo].[Users](&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [UserName] [varchar](100) COLLATE Arabic_CI_AS NULL&lt;BR&gt;) ON [PRIMARY] &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;GO&lt;BR&gt;SET ANSI_PADDING OFF&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;USE [Northwind]&lt;BR&gt;GO&lt;BR&gt;/****** Object:&amp;nbsp; Table [dbo].[test1]&amp;nbsp;&amp;nbsp;&amp;nbsp; Script Date: 09/09/2007 12:08:06 ******/&lt;BR&gt;SET ANSI_NULLS ON&lt;BR&gt;GO&lt;BR&gt;SET QUOTED_IDENTIFIER ON&lt;BR&gt;GO&lt;BR&gt;CREATE TABLE [dbo].[test](&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CustomerName] [nchar](100) COLLATE Arabic_CI_AS NULL&lt;BR&gt;) ON [PRIMARY]&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;Press F5 to execute the SQL Code&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;to create a Table named "Users" and another one named "Test" in the "Northwind" database. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;let's write some code in our Web Service , double click on the "service.cs" file , copy and paste the following code in it : &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;[WebMethod]&lt;BR&gt;&amp;nbsp;public void InsertIntoTemp(string CustomerName)&lt;BR&gt;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlConnection con = new SqlConnection();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con.ConnectionString = ConfigurationManager.ConnectionStrings["sqlcon"].ToString();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con.Open();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlCommand com = new SqlCommand();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; com.Connection = con;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; com.CommandText = "Insert users values('" + CustomerName + "')";&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; com.ExecuteNonQuery();&lt;BR&gt;&amp;nbsp;}&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;Compile the code to make sure that it has no errors...&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;now you've created a Web service that has one web Method that takes one Parameter which is "CustomerName" and inserts it in the "users" Table in the "Northwind" database. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;to attach our web service to the CLR project you will have to right click on the "CLRDemo" Project Icon and click on &lt;STRONG&gt;add Web Reference&lt;/STRONG&gt; button. &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSeKfmLp3Fc0_Llt3x20uT6y0lrEgjnYX86gu00CkkVMGH_IVVSC2F0v3we0dHEPax8" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img11 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSf7JpknNO9Fk0piTthuDpl0AzHDSwe-CmMVl48AXYIgBJbsDi6ErP5nBEba_BKrPjw" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;click on Web services in this solution the following window will appear to you &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSdDWTrf-18mkacoDZI0LP15fM6ASN-Vw8brk8GQDcqCU9mBzS8yURAk1BMUy35tiz4" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img12 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSc1_2RN2Wb2s-R4qgKW2l5b2zQh61SowlVsQrEXFFluD-YyatbNNtRDCvozl6KC2pM" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;click on the Service Link the following window will appear to you... &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSecgU78qfQxJOr5Ani17NF6KvNiX9Rs0pFul-GKlnh6AJ-FbfOIpE191UbhhRZ6Zhg" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img13 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSfyhZfrFSGonXGf3ZPkDcl7ohUVXxqqPJmFHSTF9T4k3VIUdHcWuPsJokGjuQ5y98k" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Type in the Web reference Name "PassValues" and click &lt;STRONG&gt;Add Reference&lt;/STRONG&gt; button &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;let's get back to the our "CustomerTrigger.cs" class , double click on the "CustomerTrigger.cs" class and copy and paste&amp;nbsp;the following code : &lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;using System;&lt;BR&gt;using System.Data;&lt;BR&gt;using System.Data.SqlClient;&lt;BR&gt;using Microsoft.SqlServer.Server;&lt;BR&gt;using Microsoft.SqlServer; &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;using CLRDemo.PassValues;&lt;BR&gt;public partial class Triggers&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enter existing table or view for the target and uncomment the attribute line&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;//Target Means = the name of the Table we need to monitor which is in our case Table "test"&amp;nbsp;, Event Means = Monitors which Action&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;BR&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Microsoft.SqlServer.Server.SqlTrigger(Name = "CustomerTrigger", Target = "test", Event = "FOR INSERT")]&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void CustomerTrigger()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLRDemo.PassValues.Service&amp;nbsp;service = new CLRDemo.PassValues.Service();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Replace with your own code&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlTriggerContext triggerContext = SqlContext.TriggerContext;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlPipe sqlPipe = SqlContext.Pipe;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (triggerContext.TriggerAction == &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TriggerAction.Insert)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlDataReader sdr;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // here I'll set the context of the sqlconnection I use as the same context of&amp;nbsp;my Trigger&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (SqlConnection conn = new SqlConnection("context connection=true"))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //open SQL&amp;nbsp;Connection&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Open();&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Setting my SQL command&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlCommand cmd = new SqlCommand("SELECT * FROM INSERTED", conn); &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Executing my command in&amp;nbsp;the Data reader&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sdr = cmd.ExecuteReader(); &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Checking if the data reader has Rows or not&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sdr.HasRows)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // read the data reader&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (sdr.Read())&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // passing the captured data to the created web Service &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; service.InsertIntoTemp(sdr[0].ToString().Trim());&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlContext.Pipe.Send("Trigger FIRED");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;you will find a folder named &lt;STRONG&gt;Test Scripts &lt;/STRONG&gt;Folder under the root of the"CLRDemo" project and under it "Test.sql" file; this file is used for testing , you can write in it the SQL test script you want to test your CLR code so just add in it the following code: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;insert test values ('Karim')&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;where test is our table name in the "Northwind" database &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;and comment anything else...by putting "//" at the beginning of the line. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;try to compile the project right now, the following error will appear in the output window &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSeLjSCn4MM_t6iNAj_iJv8895YzW5U91uGAdT0c5e-jpPnHg31ORHC8lFgWCvaTIqY" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=229 alt=img15 src="http://blu1.storage.msn.com/y1pLGrVQNMhOusTZQZV1tAg2hJv-Ji9LSDDY0lgVQuo3YgN9rqzcTWwJ7bmlZaCFXxOYZzAXzzX_6ZOygksehjgiEHNLhcsz_xi" width=567&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;That's because SQL Server need another assembly to access the web services, a "Serialization Assembly". How can I do that? Simple, go to the project's properties, and set the feature "generates serialization assembly" to "on". &lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;A href="http://blu1.storage.msn.com/y1pLGrVQNMhOusdMY2FUhzj0hyM8B1oZMAIngQq-mYyIpJpyxiIZwVXG0WeTNS4FNPz-55PWhcyxfG9RCJBeIqqwpW8vMqeQdHi" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=462 alt=img14 src="http://blu1.storage.msn.com/y1pLGrVQNMhOuueyC9gn-pP98Hs9lf16OPSoxv6eDna3rp38XQQILFZssVyOelzEf3rcWUhz7VLZCXDe4J_kGe052hCfXolwfxi" width=640&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;then go to the Database tab in the project properties to set the permission level to External because you are calling web service so you have to set the database permission level to External. &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blufiles.storage.msn.com/y1pAQK0VuzXRSdKCyx3iZPXcG9RAYmZiZ8DmoN92WMdhejTbeJkJ8Db8bsFfNTyB6d9bes01AQ1LDw" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=480 alt=img17 src="http://blufiles.storage.msn.com/y1pAQK0VuzXRSfoW_Z1JAsGqD3j-Qa1XhvI5KPNIMVcSjVMNovy8fVWu4G5oIOQuv5Gx3OQNbPXATc" width=640&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;After you try to compile the code after making the Generate Serialization assembly to ON the Code will generate the following error ... &lt;/FONT&gt;
&lt;P&gt;&lt;A href="http://blu1.storage.msn.com/y1pLGrVQNMhOuv70lT9XEzb_oxnx3DWjoi3tUCTY1GOy1ftZsYEckfZo9copVenDqA55qvMIHffZenfKhXaNkewLemXdhpjeqhf" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=200 alt=img16 src="http://blu1.storage.msn.com/y1pLGrVQNMhOuvbbjA1nciLyYUkQpGBPfGvz-TGzeZkr14wT15MnShJphJGHwno0M-EIzvfOW5zmi2aqac99vKUX6ikKnLm29mL" width=700&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Calling web service methods requires serializing all the types being used to XML. Outside SQL Server, this serialization code is generated at runtime, compiled and loaded in the application. However, for security and reliability reasons, SQL Server does not allow you to dynamically load assemblies. Hence, to make this scenario work, you need to pre-generate the serialization assembly and register it in the database. Visual Studio 2005 beta2 allows you to generate the serialization assembly from your project. You need to turn the Generate serialization assembly option on in project properties&amp;nbsp;a Build. You can also generate the serialization assembly using a tool called ‘sgen’ that is shipped with the .NET Framework SDK as follows: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&amp;gt;sgen.exe myAsm.dll &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Where myAsm.dll is the assembly that you want to use inside SQL Server and contains code that is calling webservices. If you have installed Visual Studio 2005, you would usually find sgen at C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin. When you run sgen, it would generate an assembly with the name myAsm.XmlSerializers.dll. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Once you have these two assemblies available. You need to register them in SQL Server as follows: &lt;/FONT&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;CREATE ASSEMBLY myAsm from ‘&amp;lt;path&amp;gt;\myAsm.dll’ &lt;/FONT&gt;&lt;/EM&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;with permission_set = EXTERNAL ACCESS&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;EM&gt;&lt;FONT color=#0000ff&gt;CREATE ASSEMBLY myAsmXml from ‘&amp;lt;path&amp;gt;\myAsm.XmlSerializers.dll’&lt;/FONT&gt;&lt;/EM&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;with permission_set = SAFE&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Visual Studio 2005 allows you to register the first assembly in SQL Server using the deploy feature in SQL Server projects. However, it does not support deploying the serialization assembly and you would need to manually register it. If you are using Visual Studio on the same machine as your SQL Server, you can use the pre / post deploy script feature in Visual Studio to automate this in your project. This can be done as follows: &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;1. Add the following to a file called predeployscript.sql: &lt;/FONT&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff&gt;IF&amp;nbsp;EXISTS (SELECT [name] FROM sys.assemblies WHERE [name] = N'myAsmXML')&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana size=2&gt;DROP ASSEMBLY myAsmXML with NO DEPENDENTS;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;2. Add the following to a file called postdeployscript.sql: &lt;/FONT&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;CREATE ASSEMBLY myAsmXML from '&amp;lt;path&amp;gt;\myAsm.XmlSerializers.dll'&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;3. Add these two files to your project by right clicking your project in Solution Explorer and Add&amp;nbsp;an Existing Item.&amp;nbsp; &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Make sure you add this in the root of the project and not in the Test Scripts. When you click deploy, Visual Studio will automatically run these scripts before and after the deployment of your project. However since the scripts are run on the SQL Server, the path must be relative to the machine on which you have SQL Server. If SQL Server and VS are on separate machines then you must make sure the path is a network path and accessible from SQL Server machine. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;after this the try to compile the code and it will work just fine. &lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;U&gt;&lt;STRONG&gt;Hint:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;you may face some problems regarding the database compatability version , so you will have to run this query in the SQL Server 2005 to ovveride this issue :&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT face=Verdana color=#0000ff size=2&gt;&lt;EM&gt;sp_dbcmptlevel&amp;nbsp;databaseName, 90 -- the level of comatablility&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp; 
&lt;P&gt;if you faced any other problems during the implementation feel free to contact me. &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;img src="http://barmagy.com/aggbug.aspx?PostID=887" width="1" height="1"&gt;</description></item></channel></rss>