<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type='text/xsl' href='http://dineshpriyankara.spaces.live.com/mmm2008-05-17_13.22/rsspretty.aspx?rssquery=en-US;http%3a%2f%2fdineshpriyankara.spaces.live.com%2fcategory%2fSQL%2bServer%2b2005%2ffeed.rss' version='1.0'?><rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msn="http://schemas.microsoft.com/msn/spaces/2005/rss" xmlns:live="http://schemas.microsoft.com/live/spaces/2006/rss" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dinesh's Blog             ::::::: Being Compiled :::::::: SQL Server 2005</title><description /><link>http://dineshpriyankara.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&amp;_c=BlogPart&amp;partqs=catSQL%2bServer%2b2005</link><language>en-US</language><pubDate>Thu, 26 Jun 2008 19:40:52 GMT</pubDate><lastBuildDate>Thu, 26 Jun 2008 19:40:52 GMT</lastBuildDate><generator>Microsoft Spaces v1.1</generator><docs>http://www.rssboard.org/rss-specification</docs><ttl>60</ttl><cf:parentRSS>http://dineshpriyankara.spaces.live.com/blog/feed.rss</cf:parentRSS><live:type>blogcategory</live:type><live:identity><live:id>4683496953178731031</live:id><live:alias>dineshpriyankara</live:alias></live:identity><cf:listinfo><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="typelabel" label="Type" /><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="tag" label="Tag" /><cf:group element="category" label="Category" /><cf:sort element="pubDate" label="Date" data-type="date" default="true" /><cf:sort element="title" label="Title" data-type="string" /><cf:sort ns="http://purl.org/rss/1.0/modules/slash/" element="comments" label="Comments" data-type="number" /></cf:listinfo><item><title>Analysis Services Browser Views Add-In</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!900.entry</link><description>&lt;p&gt;&lt;a href="http://blogs.microsoft.co.il/blogs/bei/" target="_blank"&gt;Yossi Elkayam&lt;/a&gt; has done a nice add-in to the BIDS that allows you to save views created for SSAS and run them as new requests. Seems this is very useful if you are currently working on a SSAS project.&lt;br&gt;&lt;br&gt;Read more and download from &lt;a href="http://blogs.microsoft.co.il/blogs/bei/archive/2008/04/25/analysis-services-browser-views-add-in.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Analysis+Services+Browser+Views+Add-In&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!900.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!900.entry</guid><pubDate>Tue, 03 Jun 2008 03:45:05 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!900/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!900.entry#comment</wfw:comment><dcterms:modified>2008-06-03T03:45:05Z</dcterms:modified></item><item><title>Nuggets from my SSIS experience</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!891.entry</link><description>&lt;p&gt;I have been doing lot of development on SSIS for last two, three months and I made this note on what I faced during the project. It may useful for your future SSIS development, or brush up your SSIS knowledge. Read and see.&lt;br&gt;&lt;br&gt;&lt;a href="http://sqlserveruniverse.com/content/SSIS0300103262008NuggetsfromMySSISExperience.aspx" target="_blank"&gt;Click here to read the article&lt;/a&gt;.&lt;br&gt;&lt;br&gt;Anyway, original name for the article was not this :), thanks for Gogula, naming it with nice title.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Nuggets+from+my+SSIS+experience&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!891.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!891.entry</guid><pubDate>Wed, 26 Mar 2008 00:42:26 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!891/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!891.entry#comment</wfw:comment><dcterms:modified>2008-03-26T00:43:45Z</dcterms:modified></item><item><title>Data Comparison with Data Dude</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!889.entry</link><description>&lt;p&gt;My latest article, Data Comparison with Data Dude has been published at &lt;a href="http://www.sql-server-performance.com"&gt;www.sql-server-performance.com&lt;/a&gt;. This talks about the way of comparing the data between two data sources and scripting the changes.&lt;br&gt;&lt;br&gt;Read and see, click &lt;a href="http://www.sql-server-performance.com/articles/per/Data_Comparison_with_Data_Dude_p1.aspx" target="_blank"&gt;here&lt;/a&gt; to visit the site.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Data+Comparison+with+Data+Dude&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!889.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!889.entry</guid><pubDate>Tue, 11 Mar 2008 00:59:48 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!889/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!889.entry#comment</wfw:comment><dcterms:modified>2008-03-11T00:59:48Z</dcterms:modified></item><item><title>Faced another issue with SSIS</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!888.entry</link><description>&lt;p&gt;Had to spend few minutes on this, to resolve the issue but found no solution. The problem was really weird. It was with variable window;&lt;br&gt;&lt;br&gt;&lt;a href="http://blufiles.storage.msn.com/y1pdrEM1b1m_Lsu1gqGhDiAjI9Lt64UCjzADsPpRVpJEvVYclq_-qy9ZfwqJ8vAA9c-30XlVw23oOk?PARTNER=WRITER"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px" height=226 alt="SSIS_VariableWindowProblem" src="http://blufiles.storage.msn.com/y1pdrEM1b1m_LuEKmEArOvqYnCkwwayVpQoANCriPfL0ewEOQDDlcdkQEZflm2JiPn98wmAJ3JaRC4?PARTNER=WRITER" width=407 border=0&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt;Look at the variable window. All buttons are disabled, disallowing creating or modifying variables created. I made a search to see whether anyone has experienced this before but could not find anything related to this. However, closing and reopening the packed resolved the problem :).&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Faced+another+issue+with+SSIS&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!888.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!888.entry</guid><pubDate>Mon, 10 Mar 2008 05:22:09 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!888/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!888.entry#comment</wfw:comment><dcterms:modified>2008-03-10T05:22:09Z</dcterms:modified></item><item><title>Taking advantages of Instant File Initialization</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!882.entry</link><description>&lt;p&gt;Have you ever tried this and seen the speed of file allocation process? Though I had heard about it, I had not tried (I might have but I cannot remember :)). The default file allocation of SQL Server is zero initialization that takes long time when you try to create a database with a large sized data file or when you try to restore a fairly large database that is not exist. These two processes (not only these two, other processes like adding a new file...) can be speeded up by enabling Instant Initialization. You can enable the Instant Initialization by giving proper permission to the server that runs the SQL Server instance. Let me show you the simple test I did;&lt;br&gt;&lt;br&gt;My SQL Server service runs with a account called SQLServerAccount that has just few user rights. It is not in the administrators group. I ran the code below and it took 13 seconds to create the &amp;quot;Test&amp;quot; database.&lt;br&gt;&lt;br&gt;&lt;font size=1&gt;&lt;font color="#0000ff"&gt;CREATE DATABASE&lt;/font&gt; [Test] &lt;font color="#0000ff"&gt;ON  PRIMARY&lt;/font&gt; &lt;br&gt;( &lt;font color="#0000ff"&gt;NAME&lt;/font&gt; = N&lt;font color="#ff0000"&gt;'Test'&lt;/font&gt;, &lt;font color="#0000ff"&gt;FILENAME&lt;/font&gt; = &lt;font color="#ff0000"&gt;N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Test.mdf'&lt;/font&gt; , &lt;font color="#0000ff"&gt;SIZE&lt;/font&gt; = 200 , &lt;font color="#0000ff"&gt;FILEGROWTH&lt;/font&gt; = 1000 )&lt;br&gt; &lt;font color="#ff00ff"&gt;LOG&lt;/font&gt; &lt;font color="#0000ff"&gt;ON&lt;/font&gt; &lt;br&gt;( &lt;font color="#0000ff"&gt;NAME&lt;/font&gt; = N&lt;font color="#ff0000"&gt;'Test_log'&lt;/font&gt;, &lt;font color="#0000ff"&gt;FILENAME&lt;/font&gt; = N&lt;font color="#ff0000"&gt;'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Test_log.ldf'&lt;/font&gt; , &lt;font color="#0000ff"&gt;SIZE&lt;/font&gt; = 1024KB , &lt;font color="#0000ff"&gt;FILEGROWTH&lt;/font&gt; = 10%)&lt;br&gt;GO&lt;/font&gt;&lt;br&gt;&lt;br&gt;I dropped the database and added the SQLServerAccount user account to &amp;quot;Perform volume maintenance tasks&amp;quot; policy. it is located under Administrative tasks -&amp;gt; Local security settings -&amp;gt; User right assignment. After restarting the SQL Server service, I ran the script again. Now SQL Server avoids zero initialization. It took only 1 second to create the database. This is a just a database with 200MB, so, think about a database with 10GB, or think about a restore process of 10GB database. Hope you can see the advantage.&lt;br&gt;&lt;br&gt;This is not enabled by default because of security reason. Enabling this allows SQL Server administrator to see the recently deleted files that are not supposed to be seen by the SQL Server administrator.&lt;br&gt;&lt;br&gt;This feature only available with SQL Server 2005 and it needs to be run with Windows 2003, XP or later. If the service account is already the local administrator, you already have the advantage. Note that this is not applicable to the log file.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Taking+advantages+of+Instant+File+Initialization&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!882.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!882.entry</guid><pubDate>Tue, 26 Feb 2008 01:20:13 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!882/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!882.entry#comment</wfw:comment><dcterms:modified>2008-02-26T01:20:13Z</dcterms:modified></item><item><title>11th SS SLUG meeting - Scheduled to 21st</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!880.entry</link><description>&lt;p&gt;Since the 20th is a Poyaday that is a mercantile holiday in Sri Lanka, we decided to have SS SLUG meeting on 21st, Thursday. Fiqri, ASP.NET MVP is going to join with us this time, showing his knowledge on SQL Server mobile edition. I am sure that Fiqri is going to deliver very valuable info for us because we have not discussed this topic before.&lt;br&gt;&lt;br&gt;Gogula will be doing a session too; &amp;quot;Inmon vs. Kimbal - The great debate&amp;quot;. This is a very interesting topic, and I am sure that people involve with BI know about this debate. Let's see what he is going to deliver us.&lt;br&gt;&lt;br&gt;And I will be doing a session too; I will be showing another greatest redgate tool, &lt;a href="http://www.red-gate.com/products/SQL_multi_script/index.htm" target="_blank"&gt;SQL Multi Scri&lt;/a&gt;pt.&lt;br&gt;&lt;br&gt;Hope we have added enough things to the meeting. As usual, we have arranged few things for give-away items, including T-shirts, USB drives, Mugs, Pens. Come and join with us. Listen and grab both knowledge and prizes.&lt;br&gt;&lt;br&gt;For more info, visit &lt;a href="http://sqlserveruniverse.com/content/ssslugmain.aspx" target="_blank"&gt;SQL Server Universe .Com&lt;/a&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+11th+SS+SLUG+meeting+-+Scheduled+to+21st&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!880.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!880.entry</guid><pubDate>Tue, 19 Feb 2008 18:57:12 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!880/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!880.entry#comment</wfw:comment><dcterms:modified>2008-02-21T03:21:54Z</dcterms:modified></item><item><title>Another article at sql-server-performance</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!878.entry</link><description>&lt;p&gt;Another note of mine talks about &amp;quot;Schema Comparison with Data Dude&amp;quot; has been published at &lt;a href="http://www.sql-server-performance.com"&gt;www.sql-server-performance.com&lt;/a&gt;. This shows the way of doing the schema comparison and how Data Dude addresses the changes.&lt;br&gt;&lt;br&gt;Read it from &lt;a href="http://sql-server-performance.com/articles/per/Schema_Comparison_with_VSTE_DBPro_p1.aspx" target="_blank"&gt;here&lt;/a&gt; and let me know whether it is good enough for readers.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Another+article+at+sql-server-performance&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!878.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!878.entry</guid><pubDate>Fri, 08 Feb 2008 01:13:22 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!878/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!878.entry#comment</wfw:comment><dcterms:modified>2008-02-08T01:13:22Z</dcterms:modified></item><item><title>Two new articles published</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!873.entry</link><description>&lt;p&gt;Two of my articles have been published; one at &lt;a href="http://sql-server-performance.com"&gt;http://sql-server-performance.com&lt;/a&gt; and &lt;a href="http://sqlserveruniverse.com"&gt;http://sqlserveruniverse.com&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;a href="http://sqlserveruniverse.com/content/ADMN0100212262007DataGenerationwithDataDude.aspx" target="_blank"&gt;Test Data Generation with Data Dude&lt;/a&gt;&lt;br&gt;This article explains the usage of Data Dude for test data generation. It is published at &lt;a href="http://sqlserveruniverse.com"&gt;http://sqlserveruniverse.com&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;a href="http://sql-server-performance.com/articles/per/SSIS_Usage_of_Checkpoint_File_p1.aspx" target="_blank"&gt;SSIS: Usage of Checkpoint File&lt;/a&gt;&lt;br&gt;I wrote this few months back and it was in the queue. I made this note based on the experience I had when checkpoint files are used with SSIS.&lt;br&gt;&lt;br&gt;Read both and see whether they are useful.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Two+new+articles+published&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!873.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!873.entry</guid><pubDate>Wed, 23 Jan 2008 11:04:19 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!873/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!873.entry#comment</wfw:comment><dcterms:modified>2008-01-23T11:04:19Z</dcterms:modified></item><item><title>SQL Server 2005 Best Practices Analyzer (January 2008)</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!870.entry</link><description> &lt;font size=1&gt;&lt;span style="font-family:Verdana"&gt;The latest version is available with new stuff; with new rules, enhanced facilities for documentation, more support for SSAS. I did not test anything yet but you ca start testing, using it.&lt;/span&gt;&lt;br style="font-family:Verdana"&gt;&lt;br style="font-family:Verdana"&gt;&lt;span style="font-family:Verdana"&gt;Download the BPA from &lt;/span&gt;&lt;a style="font-family:Verdana" target="_blank" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=da0531e4-e94c-4991-82fa-f0e3fbd05e63&amp;amp;displaylang=en"&gt;here&lt;/a&gt;&lt;span style="font-family:Verdana"&gt;.&lt;/span&gt;&lt;br style="font-family:Verdana"&gt;&lt;/font&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+SQL+Server+2005+Best+Practices+Analyzer+(January+2008)&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!870.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!870.entry</guid><pubDate>Sat, 19 Jan 2008 01:47:13 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!870/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!870.entry#comment</wfw:comment><dcterms:modified>2008-01-19T01:47:13Z</dcterms:modified></item><item><title>9th Consecutive SS SLUG meeting - with Christmas Eve</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!863.entry</link><description>&lt;p&gt;SQL Server Sri Lanka User Group meeting is happening today (19th) and yes, it is the last meeting for this year. Gogula will be doing a session regarding &lt;strong&gt;SQL Server 2005 Service Broker&lt;/strong&gt; &lt;em&gt;that we really wanted cover with previous meetings&lt;/em&gt;&lt;strong&gt; &lt;/strong&gt;and Dinesh Asanka will be doing a session about one of the red-gate products; &lt;strong&gt;SQL Data Compare&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;We decided to give out lots of prizes this time, including mugs, t-shirts, USB pen drives, so pay attention and grab them all. All these give-away items are sponsored by red-gate, Microsoft Sri Lanka, Virtusa-eCollege and SQL Server Universe.Com.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+9th+Consecutive+SS+SLUG+meeting+-+with+Christmas+Eve&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!863.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!863.entry</guid><pubDate>Wed, 19 Dec 2007 03:47:27 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!863/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!863.entry#comment</wfw:comment><dcterms:modified>2007-12-19T03:47:27Z</dcterms:modified></item><item><title>New Article at SQL Server Universe</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!862.entry</link><description>&lt;p&gt;I published a new article regarding log shipping with SQL Server 2005. I have added details as much as possible and the way of implementation.&lt;br&gt;&lt;br&gt;&lt;a href="http://blufiles.storage.msn.com/y1pdrEM1b1m_LtCbQZnMYqwKXHfdkQLc6RNutSWKqiXBXBnJs0RlHGN2yFHBXAQs5ceE84kHSL5HAs?PARTNER=WRITER"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px" height=175 alt="ADMN01001_01" src="http://blufiles.storage.msn.com/y1pdrEM1b1m_LuGny-0zZI-WkoqUkhpBzFY2Vy_bE7rHCewnyCC7-fafcbea5m1qI4MFTTBSSeeIDo?PARTNER=WRITER" width=244 border=0&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt;&lt;a href="http://sqlserveruniverse.com/content/ADMN0100111132007LogShipping.aspx" target="_blank"&gt;Read&lt;/a&gt; and see whether it is worthwhile.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+New+Article+at+SQL+Server+Universe&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!862.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!862.entry</guid><pubDate>Fri, 23 Nov 2007 07:27:13 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!862/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!862.entry#comment</wfw:comment><dcterms:modified>2007-11-23T07:27:13Z</dcterms:modified></item><item><title>Data Dude Presentation</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!859.entry</link><description>&lt;p&gt;I have uploaded the presentation I did at SS SLUG meeting. You can download the presentation from &lt;a href="http://sqlserveruniverse.com/files/folders/meeting08/default.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;br&gt; &lt;table cellspacing=0 cellpadding=2 width=400 border=0&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=top width=200&gt;&lt;a href="http://ohnmig.blu.livefilestore.com/y1pqW2HK2sNRguiBMg5ZcanC4BIXdQRn4EvXNteFqpe2AiuMhFTQzI79Enk-TXZZxmvAEhQQ36uyqkkj4dxfgExBw?PARTNER=WRITER"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px" height=184 alt=P1000548 src="http://blu1.storage.msn.com/y1p1uVXbgdKb5bLBEuLYVE-tAtrxFIHrMVAGyazaUUqKkOTaU8ouo_Y0wnBldj916z5d6Cd49D99hiu7DgDD8ZgTx13gsbxMYVk?PARTNER=WRITER" width=244 border=0&gt;&lt;/a&gt;  &lt;td valign=top width=200&gt;&lt;a href="http://ohnmig.blu.livefilestore.com/y1paKzw_yOb84IE626nZjLxYe7PoMY2uFf9HhL2iD3s2j1gft8e-0c10a31cEX0sh_CquVQK659CaP7j7R_Z6jx_MotoGAtra_R?PARTNER=WRITER"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px" height=184 alt=P1000550 src="http://blu1.storage.msn.com/y1p1uVXbgdKb5YutFKLahsOEpdarN1pt9sxicKHdvzqSW982Ub5BNaxYa9ZIVqWK_uqCpEodKxlHC8onbRVAP8477VdHkxtP5NX?PARTNER=WRITER" width=244 border=0&gt;&lt;/a&gt;  &lt;tr&gt; &lt;td valign=top width=200&gt;Doing my presentation - part of the audience &lt;td valign=top width=200&gt;Prize grabbers&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;br&gt;The one &lt;a href="http://dineshasanka.spaces.live.com/" target="_blank"&gt;Dinesh Asanka&lt;/a&gt; did will be uploading by Monday. See some pictures of the meeting &lt;a href="http://sqlserveruniverse.com/photos/november2007meeting_21-nov-2007/default.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Data+Dude+Presentation&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!859.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!859.entry</guid><pubDate>Fri, 23 Nov 2007 07:22:32 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!859/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!859.entry#comment</wfw:comment><dcterms:modified>2007-11-23T07:22:32Z</dcterms:modified></item><item><title>Black box in data type property</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!851.entry</link><description>&lt;p&gt;I found this with one of my &lt;strong&gt;&lt;em&gt;Script Component&lt;/em&gt;&lt;/strong&gt;. See the image;&lt;br&gt;&lt;br&gt;&lt;a href="http://blufiles.storage.msn.com/y1pdrEM1b1m_Ls6Rlig12wZeMgs1afwSbw_7h9gvc79yTCkYZ-JEefUvk62TgnxQqGVvJ15jHDu2oc"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px" height=419 alt="SSIS_Blackbox" src="http://blufiles.storage.msn.com/y1pdrEM1b1m_LvQfUG3M9PKDA3BMqBM0-ToM6a4S1x9Kaf6Dy5pDMxGyS7wa50A6VTFCxC7AcgC2hY" width=486 border=0&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt;If I click on it, the entire window goes off. Im trying to find a solution for this because this has blocked editing the type of the output. If anyone has seen this before and has found a solution, please let me know.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Black+box+in+data+type+property&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!851.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!851.entry</guid><pubDate>Mon, 22 Oct 2007 04:55:54 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!851/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!851.entry#comment</wfw:comment><dcterms:modified>2007-10-22T04:55:54Z</dcterms:modified></item><item><title>Data Mining presentation at SS SLUG meeting</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!847.entry</link><description>&lt;p&gt;The 7th SQL Server User Group meeting was held at Microsoft Sri Lanka, on last Wednesday. Gogula started the first session, delivered valuable info about new policy management in SQL Server 2008. Next was our special segment, demonstrating one of red-gate products. Dinesh Asanka did the session, exploring the value of &lt;strong&gt;&lt;em&gt;&lt;a href="http://www.red-gate.com/products/SQL_Compare/index.htm" target="_blank"&gt;SQLCompare&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;. I did the last one, I talked about Data Mining with SQL Server 2005. It was an introductory session for Data Mining, talked about data mining algorithms and algorithms introduced by Microsoft for SQL Server.&lt;br&gt;&lt;br&gt;We gave out few great prizes, including &lt;strong&gt;&lt;em&gt;&lt;a href="http://www.red-gate.com/products/SQL_Compare/index.htm" target="_blank"&gt;SQLCompare&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt; licensed copy that is worth more than US$ 500, 1GB USB pen drives, mugs and t-shirts. Prizes were sponsored by &lt;strong&gt;&lt;em&gt;&lt;a href="http://www.red-gate.com" target="_blank"&gt;red-gate&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;em&gt;Microsoft Sri Lanka&lt;/em&gt;&lt;/strong&gt;.  &lt;p&gt;Presentations related to these sessions will be published at &lt;a href="http://www.sqlserveruniverse.com/"&gt;www.sqlserveruniverse.com&lt;/a&gt; by end of week.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Data+Mining+presentation+at+SS+SLUG+meeting&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!847.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!847.entry</guid><pubDate>Fri, 19 Oct 2007 05:46:23 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!847/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!847.entry#comment</wfw:comment><dcterms:modified>2007-10-19T05:46:23Z</dcterms:modified></item><item><title>Lesson from a cartoon: SQL Injection</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!846.entry</link><description>&lt;p&gt;One of my friends had sent me this link, nice cartoon about SQL injection :)&lt;br&gt;&lt;br&gt;&lt;a title="http://xkcd.com/327/" href="http://xkcd.com/327/"&gt;http://xkcd.com/327/&lt;/a&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Lesson+from+a+cartoon%3a+SQL+Injection&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!846.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!846.entry</guid><pubDate>Fri, 19 Oct 2007 05:38:11 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!846/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!846.entry#comment</wfw:comment><dcterms:modified>2007-10-19T05:38:11Z</dcterms:modified></item><item><title>Another article at sql-server-performance.com</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!843.entry</link><description>&lt;p&gt;The second note of &lt;em&gt;Index Related DMVs and DMFs &lt;/em&gt;series has been published at &lt;a href="http://www.sql-server-performance.com"&gt;www.sql-server-performance.com&lt;/a&gt;. This article shows the usage of sys.dm_db_index_usage_stats dynamic management view. &lt;a href="http://sql-server-performance.com/articles/per/dmv_dmf_sysdm_db_index_usage_stats_p1.aspx" target="_blank"&gt;Read the article&lt;/a&gt; and see.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Another+article+at+sql-server-performance.com&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!843.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!843.entry</guid><pubDate>Wed, 10 Oct 2007 04:12:08 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!843/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!843.entry#comment</wfw:comment><dcterms:modified>2007-10-10T04:12:08Z</dcterms:modified></item><item><title>Two new articles at sqlserveruniverse.com</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!841.entry</link><description>&lt;p&gt;We have added two new articles at &lt;a href="http://www.sqlserveruniverse.com"&gt;www.sqlserveruniverse.com&lt;/a&gt;, one is written by Gogula and other from me. Here are the links;&lt;br&gt;&lt;br&gt;&lt;b&gt;&lt;a href="http://sqlserveruniverse.com/content/Article003PopulateDimTabsWithSCDTask.aspx" target="_blank"&gt;Populating Dimension Tables with the SCD Task&lt;/a&gt;&lt;/b&gt; by &lt;a href="http://sqlserveruniverse.com/user/Profile.aspx?UserID=2102"&gt;Gogula G. Aryalingam&lt;/a&gt;&lt;br&gt;ETLing dimensions through SQL Server 2000 DTS, has more or less been quite a a hassle, what with the lengthy ActiveX scripts and lookups that have to be performed. Enter SQL Server 2005 Integration Services: The Slowly Changing Dimension task has made it much simpler. As simple as a few clicks and minutes. This article talks about how a slowly changing dimension table can be populated using the Slowly Changing Dimension transformation task, which comes with Integration Services.&lt;br&gt;&lt;br&gt;&lt;b&gt;&lt;a href="http://sqlserveruniverse.com/content/SSRS0100210062007TableDataRegion.aspx" target="_blank"&gt;Reporting Services Data Regions: Table Data Region&lt;/a&gt; &lt;/b&gt;by &lt;a href="http://sqlserveruniverse.com/user/Profile.aspx?UserID=2103"&gt;Dinesh Priyankara&lt;/a&gt;&lt;br&gt;Organizing data with a combination of different data visualizations is a rather complicated yet important task in report authoring. SQL Server Reporting Services 2005 includes more than three data regions that allow us to organize data easily. This article talks about one of the data regions; Table Data Region.&lt;br&gt;&lt;br&gt;Read them and see how worth they are; and dont forget to rate and comment.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Two+new+articles+at+sqlserveruniverse.com&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!841.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!841.entry</guid><pubDate>Tue, 09 Oct 2007 04:13:40 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!841/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!841.entry#comment</wfw:comment><dcterms:modified>2007-10-09T04:13:40Z</dcterms:modified></item><item><title>sys.sysprocesses shows as "runnable" but sys.dm_exec_requests shows as "running"</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!840.entry</link><description>&lt;p&gt;The sys.dm_exec_requests is the replacement (or new implementation) of sys.sysprocesses system table. These two allow us to see the queries currently run under the instance of SQL Server. I noticed that the these two objects give different status for same execution; sys.sysprocesses give &amp;quot;runnable&amp;quot; while sys.dm_exec_requests give &amp;quot;running&amp;quot;. You can simply test this one by running a batch and monitor via these two objects. I googled and tried to find a explanation for this but nothing found. &lt;p&gt;Any comment on this?&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+sys.sysprocesses+shows+as+%22runnable%22+but+sys.dm_exec_requests+shows+as+%22running%22&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!840.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!840.entry</guid><pubDate>Mon, 08 Oct 2007 12:59:54 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!840/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!840.entry#comment</wfw:comment><dcterms:modified>2007-10-08T12:59:54Z</dcterms:modified></item><item><title>Add regions to your SQL codes</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!837.entry</link><description>&lt;p&gt;&lt;a href="http://www.ssmstoolspack.com"&gt;www.ssmstoolspack.com&lt;/a&gt; offers set of add-ins for SSMS that gives some great features. Since this is still in beta, not all functions are properly worked. One thing I really like is the feature that allows us to add regions in the code just like Visual Studio. &lt;p&gt;&lt;a href="http://blufiles.storage.msn.com/y1pdrEM1b1m_LskEXEJ5WnQObnVypG_Tgc_5K9ZD1lQUJ4M6glzmAuQtqAaTF4eA-b5I5QiMtBE28A"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px" height=372 alt=ssms src="http://blufiles.storage.msn.com/y1pdrEM1b1m_LtmEFA6TnAl0J48aeKMVOYFg3wwo6wAF3Ib6gshdA7az-zLUE33PCrNY0qNky3TV_s" width=431 border=0&gt;&lt;/a&gt;  &lt;p&gt;Since the region is added as a comment, saved scripts can be open with any SSMS and can execute without any problem. If the tool pack is not installed, it will be just a commented line without collapse/expand facility.&lt;br&gt;&lt;br&gt;&lt;a href="http://www.ssmstoolspack.com/Download.aspx" target="_blank"&gt;Download&lt;/a&gt; the toolspack and see. Since it is still in beta, better not to install in production environment.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Add+regions+to+your+SQL+codes&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!837.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!837.entry</guid><pubDate>Tue, 02 Oct 2007 03:14:28 GMT</pubDate><slash:comments>2</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!837/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!837.entry#comment</wfw:comment><dcterms:modified>2007-10-02T03:14:28Z</dcterms:modified></item><item><title>Property QuotedIdentifierStatus is not available for UserDefinedFunction</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!833.entry</link><description>&lt;p&gt;I faced for this error today when I was trying to modify a SQL 2000 table-valued function using SQL 2005 management studio. You may have already seen/faced, yes it is a bug, not a problem with security or anything but it has been fixed with SP1; if you face, make sure you install the latest service pack.&lt;br&gt;&lt;br&gt;Here is the link for it: &lt;a title="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=126099" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=126099"&gt;https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=126099&lt;/a&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Property+QuotedIdentifierStatus+is+not+available+for+UserDefinedFunction&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!833.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!833.entry</guid><pubDate>Mon, 24 Sep 2007 06:23:48 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!833/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!833.entry#comment</wfw:comment><dcterms:modified>2007-09-24T06:23:48Z</dcterms:modified></item><item><title>Index related DMVs and DMFs</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!824.entry</link><description>&lt;p&gt;Another articles of mine is published at &lt;a href=www.sql-server-performance.com target="_blank"&gt;www.sql-server-performance.com&lt;/a&gt;. This explores output of sys.dm_db_index_physical_stats function. I have added examples as much as possible; to show the actual usage of the function.  &lt;p&gt;Read the article: &lt;a href="http://www.sql-server-performance.com/articles/per/index_dmv_dmf_p1.aspx" target="_blank"&gt;http://www.sql-server-performance.com/articles/per/index_dmv_dmf_p1.aspx&lt;/a&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Index+related+DMVs+and+DMFs&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!824.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!824.entry</guid><pubDate>Thu, 20 Sep 2007 03:29:03 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!824/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!824.entry#comment</wfw:comment><dcterms:modified>2007-09-20T03:31:18Z</dcterms:modified></item><item><title>Another article at SQL Server Central</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!791.entry</link><description>&lt;p&gt;This note was made regarding .NET assemblies and SSIS. It is a short, simple note that explains the way of accessing .NET assemblies in SSIS and problems we might be facing. &lt;a href="http://www.sqlservercentral.com/columnists/dPriyankara/3180.asp" target="_blank"&gt;Read this&lt;/a&gt; and see whether it is useful.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Another+article+at+SQL+Server+Central&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!791.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!791.entry</guid><pubDate>Tue, 21 Aug 2007 10:09:45 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!791/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!791.entry#comment</wfw:comment><dcterms:modified>2007-08-21T10:09:45Z</dcterms:modified></item><item><title>Query shortcut key for SELECT * FROM</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!785.entry</link><description>&lt;p&gt;I rarely use query shortcut keys. The reason behind for that is, I have not added any new query shortcut keys :), only default keys are set. Recently there was a blog post about query shortcut keys in the &lt;a href="http://sqladvice.com/blogs/default.aspx" target="_blank"&gt;SqlAdvice&lt;/a&gt; and it opened by eyes for using query shortcut keys. One cool setting is, you can set a part of a statement for one shortcut key. Then highlighting a word in the query editor and hitting the shortcut key will complete the statement defined in the shortcut key with the highlighted word and execute. Check this; &lt;p&gt;Open SQL Server Management Studio and open &lt;em&gt;Options&lt;/em&gt; dialog box. Expand &lt;em&gt;Environment&lt;/em&gt; node in the left pane and click on &lt;em&gt;Keyboard&lt;/em&gt;. You can see default shortcut keys set for some built-in SPs. Select one of unused shortcut keys (eg. Ctrl+0) and write &lt;strong&gt;&lt;em&gt;SELECT * FROM&lt;/em&gt;&lt;/strong&gt; in the &lt;em&gt;Stored Procedure&lt;/em&gt; column. Click &lt;em&gt;OK&lt;/em&gt; to save the setting. Now open a new query window and write a table name (or drag a table from &lt;em&gt;Object Explorer&lt;/em&gt;). Highlight it and hit &lt;em&gt;Ctrl+0&lt;/em&gt;. Query window will execute a statement like &lt;strong&gt;&lt;em&gt;SELECT * FROM {yourtable}&lt;/em&gt;&lt;/strong&gt;. How easy? You can set different types of statement for other query shortcut keys. For more info, read &lt;a href="http://sqladvice.com/blogs/gstark/archive/2007/08/03/SQL-Server-Management-Studio-Query-Shortcuts.aspx" target="_blank"&gt;this post&lt;/a&gt;.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Query+shortcut+key+for+SELECT+*+FROM&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!785.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!785.entry</guid><pubDate>Wed, 08 Aug 2007 01:16:43 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!785/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!785.entry#comment</wfw:comment><dcterms:modified>2007-08-08T01:16:43Z</dcterms:modified></item><item><title>IMPLICIT Transaction mode</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!781.entry</link><description>&lt;p&gt;&lt;font face=Verdana size=1&gt;One of the things I noticed at the last SQL Server Sri Lanka User Group meeting was, unawareness of &lt;strong&gt;IMPLICIT&lt;/strong&gt; Transaction mode. Almost all were knew about &lt;strong&gt;AutoCommit &lt;/strong&gt;and &lt;strong&gt;EXPLICIT&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;modes but very few were aware of &lt;strong&gt;IMPLICIT&lt;/strong&gt; mode. Are you aware of it? Then how often you use it?&lt;br&gt;&lt;br&gt;The Difference between IMPLICT and EXPLICT is simple. EXPLICIT mode allows us to start the transaction wherever we want by using BEGIN TRAN statement. In IMPLICIT mode, the transaction automatically starts base on some T-SQL statements. Some of the statements are CREATE, INSERT, UPDATE, DELETE, ALTER TABLE. See the BOL for whole list. As EXPLICIT mode, either COMMIT or ROLLBACK is required to complete the transaction.&lt;/font&gt; &lt;div style="border-right:gray 1px solid;padding-right:4px;border-top:gray 1px solid;padding-left:4px;font-size:8pt;padding-bottom:4px;margin:20px 0px 10px;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;padding-top:4px;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4"&gt; &lt;div style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   1:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;USE&lt;/span&gt; Northwind&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   2:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;GO&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   3:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   4:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;SET&lt;/span&gt; IMPLICIT_TRANSACTIONS &lt;span style="color:#0000ff"&gt;ON&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   5:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;SET&lt;/span&gt; XACT_ABORT &lt;span style="color:#0000ff"&gt;ON&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   6:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   7:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;CREATE&lt;/span&gt; &lt;span style="color:#0000ff"&gt;TABLE&lt;/span&gt; dbo.EmployeeAllowances&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   8:&lt;/span&gt;     (EmployeeId &lt;span style="color:#0000ff"&gt;int&lt;/span&gt; &lt;span style="color:#0000ff"&gt;REFERENCES&lt;/span&gt; dbo.Employees(EmployeeID) &lt;span style="color:#0000ff"&gt;NOT&lt;/span&gt; &lt;span style="color:#0000ff"&gt;NULL&lt;/span&gt;,&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   9:&lt;/span&gt;     MonthAndYear datetime &lt;span style="color:#0000ff"&gt;NOT&lt;/span&gt; &lt;span style="color:#0000ff"&gt;NULL&lt;/span&gt;,&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  10:&lt;/span&gt;     Allowance money &lt;span style="color:#0000ff"&gt;NOT&lt;/span&gt; &lt;span style="color:#0000ff"&gt;NULL&lt;/span&gt;)&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  11:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  12:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  13:&lt;/span&gt; INSERT &lt;span style="color:#0000ff"&gt;INTO&lt;/span&gt; dbo.EmployeeAllowances&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  14:&lt;/span&gt;     (EmployeeId, MonthAndYear, Allowance)&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  15:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;VALUES&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  16:&lt;/span&gt;     (100, getdate(), 450.00)&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  17:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  18:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  19:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;COMMIT&lt;/span&gt; TRAN&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;font face=Verdana size=1&gt;The SET IMPLICIT_TRANSACTIONS ON tells the system to set the transaction mode to IMPLICIT. In above code, transaction starts with CREATE TABLE statement. Since I have turned XACT_ABORT on, transaction rolls back at any run-time error. If no run-time error, transaction is committed at COMMIT statement. In this case, everything is rolled back since INSERT statement raises an error.&lt;/font&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+IMPLICIT+Transaction+mode&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!781.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!781.entry</guid><pubDate>Tue, 31 Jul 2007 06:59:53 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!781/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!781.entry#comment</wfw:comment><dcterms:modified>2007-07-31T06:59:53Z</dcterms:modified></item><item><title>SQL Server Sri Lanka User Group meeting - July 2007</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!780.entry</link><description>&lt;p&gt;It went okay. Chamindu's session was quite impressive. Though I have done some testing about SSIS custom components, I had no chance to implement a one for one of our applications. One thing I noted is, it is simple and very powerful.&lt;br&gt;&lt;br&gt;In my presentation, one of my samples didn't work, because of the funny reason :(. I think that I have used a open-connection that had set to different isolation level, and tried to get a result-set related to another isolation level. I couldn't figure it out at that time, time might be reason because I had taken extra 15 minutes (according to Gogula :)). My presentation and samples (updated) are available for download, whoever wish to see &lt;strong&gt;&lt;em&gt;Implementing Transaction with SQL Server 2005&lt;/em&gt;&lt;/strong&gt;, visit &lt;a href="http://sqlserveruniverse.com/files/folders/meeting04/default.aspx" target="_blank"&gt;this url&lt;/a&gt;.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+SQL+Server+Sri+Lanka+User+Group+meeting+-+July+2007&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!780.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!780.entry</guid><pubDate>Tue, 24 Jul 2007 01:00:39 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!780/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!780.entry#comment</wfw:comment><dcterms:modified>2007-07-24T01:00:39Z</dcterms:modified></item><item><title>SQL Server 2005 Best Practices Analyzer - July 2007</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!777.entry</link><description>&lt;p&gt;&lt;font size=2&gt;&lt;font size=1&gt;SQL Server 2005 BPA July one is available for download at &lt;/font&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=DA0531E4-E94C-4991-82FA-F0E3FBD05E63&amp;amp;displaylang=en" target="_blank"&gt;&lt;font size=1&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font size=1&gt;. If you want to know whether you have configured the server properly and need some recommendations, this is the best tool for it.&lt;/font&gt;&lt;br&gt;&lt;/font&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+SQL+Server+2005+Best+Practices+Analyzer+-+July+2007&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!777.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!777.entry</guid><pubDate>Mon, 09 Jul 2007 09:52:41 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!777/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!777.entry#comment</wfw:comment><dcterms:modified>2007-07-09T09:54:02Z</dcterms:modified></item><item><title>Does the SQL Server always resolve the objects names in SP?</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!775.entry</link><description>&lt;p&gt;You might already know this but thought to post it because it brushed up my knowledge and hope it brush up your knowledge too.&lt;br&gt;&lt;br&gt;SQL Server starts its compiling process by checking the syntax of the code and then it checks the existence of the referenced objects. Unfortunately, this check does not always run (or it runs in different way). For example, you can create (or compile) a SP that has a reference to a table that is not exist but you cannot create a SP that has a reference to table that is exist but referred columns. Check  the below code.&lt;br&gt; &lt;div style="border-right:gray 1px solid;padding-right:4px;border-top:gray 1px solid;padding-left:4px;font-size:8pt;padding-bottom:4px;margin:20px 0px 10px;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;padding-top:4px;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4"&gt; &lt;div style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   1:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;create&lt;/span&gt; &lt;span style="color:#0000ff"&gt;table&lt;/span&gt; TestTable100 (id &lt;span style="color:#0000ff"&gt;int&lt;/span&gt;)&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   2:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;go&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   3:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   4:&lt;/span&gt; &lt;span style="color:#008000"&gt;-- this SP has reference for a table that is not exists (TestTable101)&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   5:&lt;/span&gt; &lt;span style="color:#008000"&gt;-- but you can run this script and TestSP is successfully created&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   6:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;create&lt;/span&gt; &lt;span style="color:#0000ff"&gt;proc&lt;/span&gt; TestSP&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   7:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;as&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   8:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;begin&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;   9:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  10:&lt;/span&gt;     &lt;span style="color:#0000ff"&gt;select&lt;/span&gt; * &lt;span style="color:#0000ff"&gt;from&lt;/span&gt; TestTable101&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  11:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;end&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  12:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;go&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  13:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  14:&lt;/span&gt; &lt;span style="color:#008000"&gt;-- this SP has a reference to the correct table but has referenced to the column &lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  15:&lt;/span&gt; &lt;span style="color:#008000"&gt;-- that is not exist.&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  16:&lt;/span&gt; &lt;span style="color:#008000"&gt;-- SQL Server does not create this SP because it checks for column names&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  17:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;alter&lt;/span&gt; &lt;span style="color:#0000ff"&gt;proc&lt;/span&gt; TestSP&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  18:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;as&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  19:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;begin&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  20:&lt;/span&gt;  &lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  21:&lt;/span&gt;     &lt;span style="color:#0000ff"&gt;select&lt;/span&gt; name &lt;span style="color:#0000ff"&gt;from&lt;/span&gt; TestTable100&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:#f4f4f4;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  22:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;end&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right:0px;padding-left:0px;font-size:8pt;padding-bottom:0px;margin:0em;overflow:visible;width:100%;color:black;border-top-style:none;line-height:12pt;padding-top:0px;font-family:consolas, 'Courier New', courier, monospace;border-right-style:none;border-left-style:none;background-color:white;border-bottom-style:none"&gt;&lt;span style="color:#606060"&gt;  23:&lt;/span&gt; &lt;span style="color:#0000ff"&gt;go&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;br&gt;Did it remind you something? Hope it does.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Does+the+SQL+Server+always+resolve+the+objects+names+in+SP%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!775.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!775.entry</guid><pubDate>Tue, 19 Jun 2007 04:01:07 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!775/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!775.entry#comment</wfw:comment><dcterms:modified>2007-06-19T04:02:59Z</dcterms:modified></item><item><title>New white paper: Scale-Out Querying with Analysis Services</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!773.entry</link><description>&lt;p&gt;This is the latest article written about scaling out querying architecture in Analysis Services. Check &lt;a href="http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/scoqryas.mspx" target="_blank"&gt;this&lt;/a&gt; out. It is really worthwhile for reading.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+New+white+paper%3a+Scale-Out+Querying+with+Analysis+Services&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!773.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!773.entry</guid><pubDate>Mon, 18 Jun 2007 00:50:31 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!773/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!773.entry#comment</wfw:comment><dcterms:modified>2007-06-18T00:50:31Z</dcterms:modified></item><item><title>Let the SSRS access SSIS package as data source</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!771.entry</link><description>&lt;p&gt;I had not tried this but the requirement came yesterday, see the possibility of setting SSIS package as a data source for SSRS reports. By default, it is not enabled, you will not see anything related to SSIS in the &lt;strong&gt;&lt;em&gt;DataSource Type&lt;/em&gt;&lt;/strong&gt; drop-down in the &lt;strong&gt;&lt;em&gt;data source dialog box&lt;/em&gt;&lt;/strong&gt;. Follow below set if you need to set SSIS packages as data source for your reports. &lt;ul&gt; &lt;li&gt;Open RSReportDesigner.config file through text editor. It is stored in the &lt;strong&gt;&lt;em&gt;\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies&lt;/em&gt;&lt;/strong&gt; folder.  &lt;li&gt;Remove comment marks that have been set for SSIS extensions under &lt;strong&gt;&lt;em&gt;data &lt;/em&gt;&lt;/strong&gt;and &lt;strong&gt;&lt;em&gt;designer&lt;/em&gt;&lt;/strong&gt; element. Save and close it.  &lt;li&gt;Open the rsreportserver.config file in the &lt;strong&gt;&lt;em&gt;\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer&lt;/em&gt;&lt;/strong&gt; folder.  &lt;li&gt;Clear comment marks set for SSIS extension under &lt;strong&gt;&lt;em&gt;data&lt;/em&gt;&lt;/strong&gt; element.&lt;/ul&gt; &lt;p&gt;Now you can access and process SSIS packages for reports. I may be writing complete procedure and publish but this is total enough for starting the experiment.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Let+the+SSRS+access+SSIS+package+as+data+source&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!771.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!771.entry</guid><pubDate>Tue, 12 Jun 2007 01:08:10 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!771/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!771.entry#comment</wfw:comment><dcterms:modified>2007-06-12T01:08:10Z</dcterms:modified></item><item><title>New article about Check Database Integrity Task</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!766.entry</link><description>&lt;p&gt;Wrote the first article to the &lt;a href="http://sqlserveruniverse.com/content/CheckDatabaseIntegrityTask.aspx" target="_blank"&gt;SQL Server Universe, regarding SSIS&lt;/a&gt;. This is the first article of the series of articles. We will be adding more different types of articles soon but currently focusing on SSIS and SSAS. Read it and see whether it is worthwhile.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+New+article+about+Check+Database+Integrity+Task&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!766.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!766.entry</guid><pubDate>Fri, 25 May 2007 08:22:06 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!766/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!766.entry#comment</wfw:comment><dcterms:modified>2007-05-25T08:22:06Z</dcterms:modified></item><item><title>2nd SQL Server User Group Meeting in Sri Lanka is scheduled</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!753.entry</link><description>&lt;p&gt;The 2nd SSUG &lt;a href="http://www.sqlserveruniverse.com" target="_blank"&gt;meeting is scheduled&lt;/a&gt; on 16th May, 2007. As usual, two sessions will be done; regarding replication and indexing. I'll be speaking about indexing, not about how to create them, but how to analyze and diagnosis. During my presentation, I'll be going covering some of new DMVs and dashboard facility too. Dinesh Asanka will be delivering the first session regarding replication. If you are in Sri Lanka, and interest, visit and see how useful these sessions are. For more info, visit &lt;a href="http://www.sqlserveruniverse.com"&gt;http://www.sqlserveruniverse.com&lt;/a&gt;. &lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+2nd+SQL+Server+User+Group+Meeting+in+Sri+Lanka+is+scheduled&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!753.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!753.entry</guid><pubDate>Sat, 05 May 2007 03:31:54 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!753/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!753.entry#comment</wfw:comment><dcterms:modified>2007-05-05T03:34:26Z</dcterms:modified></item><item><title>SQL Server Universe assisted to launch BI</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!752.entry</link><description>&lt;p&gt;I am glad to announce that &lt;a href="http://www.sqlserveruniverse.com" target="_blank"&gt;SQL Server Universe&lt;/a&gt; did its first SQL training session for one of leading marketing companies in Sri Lanka. Gogula and myself ran four interactive sessions regarding BI, SSIS, SSAS and data analyzing with Office 2007 (including hands-on training). The goal of all these training sessions was implementing business intelligence with SQL Server 2005 product suite. The sessions went okay and seemed that the data mining part was the most interest for them.&lt;br&gt;&lt;br&gt;We have some plans to launch SQL Server hands-on training for developers, will be announcing dates and places soon.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+SQL+Server+Universe+assisted+to+launch+BI&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!752.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!752.entry</guid><pubDate>Sat, 05 May 2007 03:23:07 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!752/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!752.entry#comment</wfw:comment><dcterms:modified>2007-05-05T03:23:07Z</dcterms:modified></item><item><title>Indirect Configuration and multiple SSIS packages</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!750.entry</link><description>&lt;p&gt;One of the disadvantages with direct configuration (configuration location is hard-coded in the package) is, the location of the configuration file should be same as it was at the design time. For example, if you use the configuration file as &lt;em&gt;D:\MyConfigFile\PackageConfiguration.dtsConfig&lt;/em&gt; at the design time, SSIS package expects the config file from the same path once it is deployed. One way to over some this issue is, disable the configuration from the package and compile, and assign the configuration file explicitly at run-time. Other way is, Indirect Configuration. &lt;p&gt;Indirect configuration can be simply implemented by setting the configuration location in the envoirnment variable. The configuration file can be deployed to any location. The SSIS package looks for the envoirnment variable for the location of the config file.&lt;br&gt;&lt;br&gt;Applying same configuration file for multiple packages is possible. The header section of the configuration setting is totally ignored at the runtime (you can see the configuration section if you open the package with any text editor) and it tries to set all properties available in the config file to the package. You will see &lt;em&gt;&lt;strong&gt;warnings&lt;/strong&gt;&lt;/em&gt; if all properties cannot be applied to the package but can suppress all warnings by setting SuppressConfigurationWarnings &lt;em&gt;true&lt;/em&gt;.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Indirect+Configuration+and+multiple+SSIS+packages&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!750.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!750.entry</guid><pubDate>Mon, 23 Apr 2007 04:34:01 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!750/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!750.entry#comment</wfw:comment><dcterms:modified>2007-04-23T04:34:01Z</dcterms:modified></item><item><title>My SP does not use the index I added</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!747.entry</link><description>&lt;p&gt;I am sure that you have experienced this issue. You might have seen that the content of the SP works fine (within the expected time-frame), but not the SP. There are many reasons for this, but I recently noticed this issue in one of the SPs which I examined. Let me share the issue and fix with you, it might be helpful WITH your work.  &lt;p&gt;Assume that the below table contains 100000 (from the year 1753) records and you try to get some records by using the SP GetTestData.  &lt;p&gt;CREATE TABLE TestTable (ID int IDENTITY(1,1) PRIMARY KEY, Date datetime, String varchar(1000))&lt;br&gt;GO&lt;br&gt;CREATE INDEX IX_TextTable ON TestTable (Date)&lt;br&gt;GO  &lt;p&gt;CREATE PROC GetTestData @number int&lt;br&gt;AS&lt;br&gt;BEGIN  &lt;p&gt;DECLARE @NewDate datetime&lt;br&gt;SET @NewDate = DATEADD(month, @number, getDate())&lt;br&gt;SELECT ID, String FROM TestTable WHERE Date &amp;gt; @NewDate  &lt;p&gt;END &lt;br&gt;GO  &lt;p&gt;Note that we can add &amp;quot;DATEADD(month, @number, getDate())&amp;quot; to the WHERE condition without any problem but presume that the formula is much more complex than this and cannot be added to the &amp;quot;WHERE&amp;quot; condition directly.  &lt;p&gt;Now let's try to get some result-sets. If I need to get records for last 10 months, I will be executing the below query;  &lt;p&gt;EXEC GetTestData -10  &lt;p&gt;If you have enabled &amp;quot;Include Actual Execution Plan&amp;quot; and &amp;quot;I/O&amp;quot;, you may notice that SQL Server has not used the index which we had added and uses more logical reads than we expected (14340).&lt;br&gt;&lt;br&gt;You may try the query itself by hardcoding the value;&lt;br&gt;SELECT ID, String FROM TestTable WHERE Date &amp;gt; DATEADD(month, -10, getDate()) &lt;br&gt;&lt;br&gt;Now you will see that it has used the index and has read few pages (938) only, and has executed within a lesser time-frame. So, where have we made the mistake? Why didn't SQL Server use the index when the SP was executed? The reason is simple. When the SP is compiled, initially it has no value for @number parameter and because of this it generates the plan for 30% of the records in the TestTable, and in this case it generates the plan that tells SQL Server to do a clustered index scan rather than scan the index we added. So, it never uses the index unless we force.&lt;br&gt;&lt;br&gt;To overcome this behaviour, or to force using the index, we can use the OPTIMIZE FOR option with the statement. Note that you have to know about the exact requirment for the SP before applying the OPTIMIZE FOR with a value. For example, it would be better to do a clustered scan for a large result set than an index scan.&lt;br&gt;&lt;br&gt;Here is the new SP;&lt;br&gt;CREATE PROC GetTestData @number int&lt;br&gt;AS&lt;br&gt;BEGIN  &lt;p&gt;DECLARE @NewDate datetime&lt;br&gt;SET @NewDate = DATEADD(month, @number, getDate())&lt;br&gt;SELECT ID, String FROM TestTable WHERE Date &amp;gt; @NewDate OPTION (OPTIMIZE FOR (@NewDate = '01/01/2007'))  &lt;p&gt;END  &lt;p&gt;Now we can see that;  &lt;p&gt;EXEC GetTestData -10  &lt;p&gt;is executed by using the index we added and with the time we expected and less page reads. So, if you face this issue, measure it, understand the requirement, and use OPTIMIZE FOR.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+My+SP+does+not+use+the+index+I+added&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!747.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!747.entry</guid><pubDate>Tue, 17 Apr 2007 06:43:55 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!747/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!747.entry#comment</wfw:comment><dcterms:modified>2007-04-17T06:43:55Z</dcterms:modified></item><item><title>Fix for the SSIS Script Task error....</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!746.entry</link><description>&lt;p&gt;&lt;br&gt;&lt;a href="http://blu1.storage.msn.com/x1pqP5noGPWAA5YZvlNVhBmo2IhPl8D29ENaglUO3zQcEcq_i3qGs6CThu6NCP-B7dghvlMWDYIp-59JSCKbZTnxV9skMD9Qx38oAHXG6FZn3fS5F4sq7aBENaLTxvAF1e9Az9apNFIZy5UncwQ94XkZJIAzYW8yqjl"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px" height=135 src="http://blu1.storage.msn.com/x1pqP5noGPWAA5YZvlNVhBmo2IhPl8D29ENaglUO3zQcEfqWrrwItQBvXfIqrFX7I0Nzyqp2nBNG4X9PWBYhXE-uO6VKWMmxdUHvpvRkrBOpwERUuG5rIzEoitXzJA872O7yoKfe4X4gbSxn6hDrHMdXdgEE8l3WFRx" width=499 border=0&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt;This error put me into a big trouble when I was doing the SSIS presentation. I couldnt figure out the reason for the problem but finally found out that it is a bug. Information about this has been published &lt;a href="http://support.microsoft.com/Default.aspx?kbid=932556"&gt;here&lt;/a&gt; and the patach can be downloaded from &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8af6c597-0f18-4e61-b3d2-aad66cdcacf5&amp;amp;DisplayLang=en"&gt;here&lt;/a&gt;.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Fix+for+the+SSIS+Script+Task+error....&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!746.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!746.entry</guid><pubDate>Tue, 10 Apr 2007 10:49:37 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!746/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!746.entry#comment</wfw:comment><dcterms:modified>2007-04-10T10:49:37Z</dcterms:modified></item><item><title>SP2 is out. Did you download new samples?</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!732.entry</link><description>&lt;p&gt;You must have already downloaded the SP2 now. If not, here is the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=d07219b2-1e23-49c8-8f0c-63fa18f26d3a&amp;amp;DisplayLang=en"&gt;link&lt;/a&gt;. Note that new samples are not included with it. Samples can be downloaded from &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=e719ecf7-9f46-4312-af89-6ad8702e4e6e&amp;amp;displaylang=en"&gt;here&lt;/a&gt; and readme file from &lt;a href="http://download.microsoft.com/download/d/8/6/d865cf0c-c44b-401b-b426-b3bf5c628112/SQLServerDatabasesAndSamplesOverview.htm"&gt;here&lt;/a&gt; if want. &lt;p&gt;Did you notice that there is a new sample database called AdventureWorksLT?&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+SP2+is+out.+Did+you+download+new+samples%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!732.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!732.entry</guid><pubDate>Thu, 22 Feb 2007 04:00:09 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!732/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!732.entry#comment</wfw:comment><dcterms:modified>2007-02-22T04:00:09Z</dcterms:modified></item><item><title>Wanna use c# component in SSIS?</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!730.entry</link><description>&lt;p&gt; &lt;p&gt;If you make search on it, you will definitely find enough information related to it. But since I experienced it, thought to blog. Assume that we have a .net class that is written with c#.net. Now I want to use one of the methods in that class in my SSIS package. Simply, I add “&lt;em&gt;Script Task&lt;/em&gt;” and open the &amp;quot;&lt;em&gt;Design Script&lt;/em&gt;&amp;quot; window by using &lt;em&gt;edit&lt;/em&gt; menu item of it.&lt;br&gt;&lt;br&gt;As usual, I have to reference the assembly, open the &lt;em&gt;&amp;quot;Add Rererence&amp;quot; &lt;/em&gt;dialog box. My assembly is located in one my working folder; need to browse it for adding. But I found &lt;strong&gt;&lt;u&gt;NO&lt;/u&gt; &lt;/strong&gt;&lt;em&gt;browse&lt;/em&gt; button and my assembly is not listed too. The reason is, I can use only assemblises located in &lt;em&gt;&amp;quot;C:\WINDOWS\Microsoft.NET\Framework\v2.x.xxxxx&amp;quot; &lt;/em&gt;folder, means, I have to copy my assembly into that folder. Once copied, I referenced and &lt;em&gt;design-time &lt;/em&gt;availability is okay.&lt;br&gt;&lt;br&gt;Now the &lt;em&gt;run-time&lt;/em&gt;. Can I run without any problem? No, I get &amp;quot;&lt;em&gt;Could not load file or assembly.....&amp;quot;&lt;/em&gt; error&lt;em&gt;.&lt;/em&gt; Now the reason is, if SSIS accesses any assemblies, they should be exist in the &lt;strong&gt;GAC&lt;/strong&gt;. Once my assembly is added to the GAC (of course, it need to be &lt;strong&gt;signed&lt;/strong&gt;), it started working as I want; I can access the .net classes through SSIS.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Wanna+use+c%23+component+in+SSIS%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!730.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!730.entry</guid><pubDate>Sun, 18 Feb 2007 06:32:51 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!730/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!730.entry#comment</wfw:comment><dcterms:modified>2007-02-18T06:32:51Z</dcterms:modified></item><item><title>SSIS: Some of foreach items are missing....</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!728.entry</link><description>&lt;p&gt;It was noticed when I opened one of my SSIS packages that had &lt;em&gt;ForEachLoopContainer&lt;/em&gt; used. The exclamation mark was appeared on the &lt;em&gt;ForEachLoopContainer&lt;/em&gt; and found out the reason for it was missing &lt;em&gt;Foreach File Enumerator item&lt;/em&gt;. Not only that, the &lt;em&gt;Foreach Item Enumerator&lt;/em&gt; was missing too. How did it happen? As usual, made a search and found out that it is a known issue, introduced by &lt;strong&gt;SP1&lt;/strong&gt;. The problem has been discussed under below link and some contain possible solution.&lt;br&gt;&lt;br&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1146061&amp;amp;SiteID=1" target="_blank"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1146061&amp;amp;SiteID=1&lt;/a&gt;&lt;br&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;913817"&gt;support.microsoft.com/default.aspx?scid=kb;en-us;913817&lt;/a&gt;&lt;br&gt;&lt;a href="http://mohansmindstorms.spaces.live.com/Blog/cns!69AE1BEA50F1D0E7!203.entry" target="_blank"&gt;http://mohansmindstorms.spaces.live.com/Blog/cns!69AE1BEA50F1D0E7!203.entry&lt;/a&gt;&lt;br&gt;&lt;br&gt;Unfortunately, nothing worked for me. I changed the registry, re-installed, etc.. I would have corrected it if have had a backup of the registry because one possible reason for this is, registry changes made by other newly installed software. I suspect that culprit is WindowsDesktopSearchEngine, that I tried to install for my outlook 2007 but failed. So, the whole rescue operation ended up with re-installing the OS. How bad?&lt;br&gt;&lt;br&gt;So, guys be aware of this issue.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+SSIS%3a+Some+of+foreach+items+are+missing....&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!728.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!728.entry</guid><pubDate>Wed, 31 Jan 2007 01:12:01 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!728/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!728.entry#comment</wfw:comment><dcterms:modified>2007-01-31T01:12:01Z</dcterms:modified></item><item><title>SELECT * FROM: Does it always a bad practice?</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!726.entry</link><description>&lt;p&gt; &lt;p&gt;We all know that “SELECT *” is a bad practice and it is expensive. But does this “theory” apply for all scenarios? No it does not. There is one place we should not worry about this. See the code below.&lt;br&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;IF&lt;/font&gt; &lt;font color="#808080"&gt;EXISTS&lt;/font&gt; (&lt;font color="#0000ff"&gt;SELECT&lt;/font&gt; * &lt;font color="#0000ff"&gt;FROM&lt;/font&gt; Person.Address)&lt;br&gt;&lt;font color="#0000ff"&gt;BEGIN&lt;br&gt;   print&lt;/font&gt; &lt;font color="#ff0000"&gt;'yes'&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;END&lt;/font&gt;&lt;br&gt;&lt;br&gt;If &lt;strong&gt;“STATISTICS IO”&lt;/strong&gt; sets on and executes the above code, you can see that only few logical or physical pages have been read. But if &lt;strong&gt;“SELECT * FROM Person.Address”&lt;/strong&gt; statement executes without “EXIST”, all the pages for the table will be read. This shows that &lt;strong&gt;“SELECT *” &lt;/strong&gt;is not an expensive query with &lt;strong&gt;“EXIST” &lt;/strong&gt;because SQL Server check the availability of records instead reading the entire table. So, do not worry about &lt;strong&gt;“SELECT”&lt;/strong&gt; statements with &lt;strong&gt;“EXIST”&lt;/strong&gt;, SQL Server completely ignores the statement.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+SELECT+*+FROM%3a+Does+it+always+a+bad+practice%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!726.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!726.entry</guid><pubDate>Thu, 25 Jan 2007 07:18:40 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!726/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!726.entry#comment</wfw:comment><dcterms:modified>2007-01-25T07:18:40Z</dcterms:modified></item><item><title>Using QUOTENAME for parameter values</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!724.entry</link><description>&lt;p&gt; &lt;p&gt;I was going through few notes I had made regarding sql injection couple of years ago and it remembered me the value of some good practices when we write dynamic queries. Using &lt;strong&gt;QUOTENAME&lt;/strong&gt; function for parameter values was one of among. See the below code for brushing up your mind too.&lt;br&gt;&lt;br&gt;Assume that we wanted to have a stored procedure that returns some records from one of our business tables base on the column name (from a drop-down) and the value for it. You might be writing the SP like this;&lt;br&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;CREATE PROCEDURE&lt;/font&gt; TestProc @ColumnName &lt;font color="#0000ff"&gt;varchar&lt;/font&gt;(100), @Value &lt;font color="#0000ff"&gt;varchar&lt;/font&gt;(100)&lt;br&gt;&lt;font color="#0000ff"&gt;AS&lt;br&gt;BEGIN &lt;br&gt;&lt;br&gt;   DECLARE&lt;/font&gt; @sql &lt;font color="#0000ff"&gt;varchar&lt;/font&gt;(1000)&lt;br&gt;   &lt;font color="#0000ff"&gt;SET&lt;/font&gt; @sql = &lt;font color="#ff0000"&gt;'SELECT columns FROM table WHERE '&lt;br&gt;&lt;/font&gt;   &lt;font color="#0000ff"&gt;SET&lt;/font&gt; @sql = @sql + @ColumnName +&lt;font color="#ff0000"&gt; ' = '''&lt;/font&gt; + @Value + &lt;font color="#ff0000"&gt;''''&lt;br&gt;&lt;/font&gt;&lt;br&gt;   &lt;font color="#0000ff"&gt;EXEC&lt;/font&gt; (@sql) &lt;br&gt;&lt;font color="#0000ff"&gt;END&lt;/font&gt;&lt;br&gt;&lt;br&gt;So the client will execute this with;&lt;br&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;DECLARE&lt;/font&gt; @ColumnName &lt;font color="#0000ff"&gt;varchar&lt;/font&gt;(100), @Value &lt;font color="#0000ff"&gt;varchar&lt;/font&gt;(100)&lt;br&gt;&lt;font color="#0000ff"&gt;SET&lt;/font&gt; @ColumnName = &lt;font color="#ff0000"&gt;'Column1'&lt;/font&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;SET&lt;/font&gt; @Value = &lt;font color="#ff0000"&gt;'value'&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;EXEC&lt;/font&gt; TestProc @ColumnName, @Value&lt;br&gt;&lt;br&gt;He got the result he wanted. What happen if he/she set the @value like this?&lt;br&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;SET&lt;/font&gt; @Value = &lt;font color="#ff0000"&gt;'''; SELECT * FROM sys.sysobject --'&lt;br&gt;&lt;/font&gt;&lt;br&gt;Too bad. He got something that he should not see. Here is the worse case.&lt;br&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;SET&lt;/font&gt; @Value = &lt;font color="#ff0000"&gt;'''; DELETE FROM table1 --'&lt;br&gt;&lt;/font&gt;&lt;br&gt;So, where we can use QUOTENAME function? Here is the way. Modify the SP like below.&lt;br&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;SET&lt;/font&gt; @sql = @sql + @ColumnName +&lt;font color="#ff0000"&gt; ' = '&lt;/font&gt; + &lt;font color="#ff00ff"&gt;QUOTENAME&lt;/font&gt;(@Value, &lt;font color="#ff0000"&gt;''''&lt;/font&gt;) &lt;br&gt;&lt;br&gt;Keep this in your mind. Even though it is not a good practice writing dynamic SQLs, some situations force you to apply dynamic queries. If so, make sure you use this function too.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Using+QUOTENAME+for+parameter+values&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!724.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!724.entry</guid><pubDate>Tue, 16 Jan 2007 05:17:59 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!724/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!724.entry#comment</wfw:comment><dcterms:modified>2007-01-16T05:17:59Z</dcterms:modified></item><item><title>Service Pack 2 - December CTP</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!707.entry</link><description>&lt;p&gt;&lt;font size=1&gt;SQL Server 2005 Servise Pack 2 - Community Technolodgy Perview is now avaialble for download. Download from &lt;/font&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d2da6579-d49c-4b25-8f8a-79d14145500d&amp;amp;DisplayLang=en"&gt;&lt;font size=1&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font size=1&gt;.&lt;/font&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Service+Pack+2+-+December+CTP&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!707.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!707.entry</guid><pubDate>Thu, 21 Dec 2006 04:01:38 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!707/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!707.entry#comment</wfw:comment><dcterms:modified>2006-12-21T04:01:38Z</dcterms:modified></item><item><title>Why cannot I enter date earlier than 1753?</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!702.entry</link><description>&lt;p&gt;&lt;font size=1&gt;&lt;/font&gt; &lt;p&gt;&lt;font size=1&gt;Almost all SQL Server database developers know this issue, in other word, limitation. You cannot insert values lower than 01/01/1753 into datetime column. Do you know the reason? I was unaware of this reason but yesterday, one of my friends (He insisted not mention his name :)) explained me one of possible reasons. And guess what, it is not a technical reason, it is historical reason.&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font size=1&gt;You might know that there had been two calendar types; Julian and Gregorian. When the people who used Julian decided move to Gregorian, they had to skip couple of days (10 to 14 days). This was happen around 1752. Because of this, the dates earlier than 1753 are different from country to country and have to maintain different procedures for different countries (or cultures) if the system need to support for them. That’s why SQL Server treats 01/01/1753 as the earliest date.&lt;/font&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+Why+cannot+I+enter+date+earlier+than+1753%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!702.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!702.entry</guid><pubDate>Wed, 15 Nov 2006 16:46:44 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!702/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!702.entry#comment</wfw:comment><dcterms:modified>2006-11-15T16:46:44Z</dcterms:modified></item><item><title>vardecimal with SP2: It is not what I thought</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!701.entry</link><description>&lt;p&gt;&lt;font size=1&gt;Is new datatype introduced? Is it just like varchar? I thought &lt;em&gt;&lt;strong&gt;yes&lt;/strong&gt;&lt;/em&gt;. But it is not. Vardecimal is a storage format, not a datatype. Because of that it is not available for columns when design tables. I have been trying to find what it is, yes after Gogula's comment for my one of previous posts. Finally I figured it out how to use it; see the sample code I used for testing.&lt;br&gt;&lt;br&gt;&lt;font color="#008000"&gt;-- create a table with decimal column&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;CREATE TABLE &lt;/font&gt;TestTable&lt;br&gt;(ID &lt;font color="#0000ff"&gt;int IDENTITY&lt;/font&gt;(1,1) &lt;font color="#0000ff"&gt;PRIMARY KEY&lt;/font&gt;, Number &lt;font color="#0000ff"&gt;decimal&lt;/font&gt;(20,3))&lt;br&gt;GO&lt;br&gt;&lt;br&gt;&lt;font color="#008000"&gt;-- insert some values&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;DECLARE &lt;/font&gt;@i &lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;br&gt;&lt;font color="#0000ff"&gt;SET &lt;/font&gt;@i = 1&lt;br&gt;&lt;font color="#0000ff"&gt;WHILE &lt;/font&gt;@i &amp;lt; 100000&lt;br&gt;&lt;font color="#0000ff"&gt;BEGIN &lt;br&gt;&lt;br&gt;   INSERT INTO &lt;/font&gt;TestTable&lt;br&gt;   &lt;font color="#0000ff"&gt;VALUES&lt;/font&gt; (&lt;font color="#ff00ff"&gt;rand&lt;/font&gt;()*1000000) &lt;br&gt;&lt;br&gt;   &lt;font color="#0000ff"&gt;SET &lt;/font&gt;@i = @i + 1&lt;br&gt;&lt;font color="#0000ff"&gt;END&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font size=1&gt;&lt;font color="#008000"&gt;-- check the space used for table&lt;br&gt;&lt;/font&gt;&lt;font color="#800000"&gt;sp_spaceused &lt;/font&gt;&lt;/font&gt;&lt;font size=1&gt;&lt;font color="#ff0000"&gt;'TestTable'&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;font color="#008000"&gt;-- result&lt;br&gt;-- reserved: 2632KB&lt;br&gt;-- data: 2576KB&lt;br&gt;&lt;/font&gt;&lt;br&gt;Since vardecimal is a storage format, it cannot be set it to column itself. It has to be set for; first database and then table. But before all of these, it is possible to check whether the size reduction after enabling the format is really a worth enough.&lt;br&gt;&lt;br&gt;&lt;font color="#008000"&gt;-- check the estimated reduction for the row.&lt;/font&gt;&lt;br&gt;sys.sp_estimated_rowsize_reduction_for_vardecimal &lt;font color="#ff0000"&gt;'TestTable'&lt;/font&gt;&lt;br&gt;&lt;br&gt;*Note: BOL shows the name of SP as sys.sp_estimate_ro... . Make sure you use it as sys.sp_estimate&lt;strong&gt;&lt;em&gt;&lt;font color="#00ff00"&gt;d&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;_ro.... .&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font size=1&gt;&lt;font color="#008000"&gt;-- result&lt;br&gt;-- avg_rowlen_fixed_format: 24.00&lt;br&gt;-- avg_rowlen_vardecimal_format: 17.98&lt;br&gt;&lt;/font&gt;&lt;br&gt;The result tells us that the row size can be reduced by 25%. Isn't good? Yes, It is worthwhile to change the storage format of decimals. Enable it on the database and then the table.&lt;br&gt;&lt;br&gt;&lt;font color="#008000"&gt;-- enable the database for vardecimal storage format&lt;br&gt;&lt;/font&gt;sp_db_vardecimal_storage_format &lt;font color="#ff0000"&gt;'TestDatabase'&lt;/font&gt;, &lt;font color="#ff0000"&gt;'ON' &lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;font color="#008000"&gt;-- enable the table&lt;/font&gt;&lt;br&gt;&lt;font color="#800000"&gt;sp_tableoption&lt;/font&gt; &lt;font color="#ff0000"&gt;'TestTable'&lt;/font&gt;, &lt;font color="#ff0000"&gt;'vardecimal storage format'&lt;/font&gt;, true&lt;br&gt;&lt;br&gt;Done. Lets check the space usage again.&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font size=1&gt;&lt;font color="#008000"&gt;-- check the space used for table&lt;br&gt;&lt;/font&gt;&lt;font color="#800000"&gt;sp_spaceused &lt;/font&gt;&lt;/font&gt;&lt;font size=1&gt;&lt;font color="#ff0000"&gt;'TestTable'&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font color="#008000"&gt;-- result&lt;br&gt;-- reserved: 2248KB&lt;br&gt;-- data: 2176KB&lt;/font&gt;&lt;br&gt;&lt;br&gt;Great. We just saved the disk space. And this is just for 100000 records. If you have millions of records with decimal values, Then it is high time to set this. Note that it is better to check the size reduction estimate before enabling it on the table because it might give you an unexpected result.&lt;/font&gt; &lt;p&gt;&lt;font size=1&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4683496953178731031&amp;page=RSS%3a+vardecimal+with+SP2%3a+It+is+not+what+I+thought&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=dineshpriyankara.spaces.live.com&amp;amp;GT1=dineshpriyankara"&gt;</description><comments>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!701.entry#comment</comments><guid isPermaLink="true">http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!701.entry</guid><pubDate>Sat, 11 Nov 2006 16:10:40 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://dineshpriyankara.spaces.live.com/blog/cns!40FF1FAA28D7B217!701/comments/feed.rss</wfw:commentRss><wfw:comment>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!701.entry#comment</wfw:comment><dcterms:modified>2006-11-11T16:10:40Z</dcterms:modified></item><item><title>It loads NULL from Excel to SQL Server</title><link>http://dineshpriyankara.spaces.live.com/Blog/cns!40FF1FAA28D7B217!648.entry</link><description>&lt;p&gt;Even thoug it is a known issue, it is worth to blog. You might have seen this problem before and you might have found the solution too. The problem is loading data from Excel into SQL Server. There are some instances that all columns are not populated with values with what excel file has. For example, if we have a excel file (book1.xls) with three columns like below; &lt;p&gt;&lt;strong&gt;Col1       Col2       Col3&lt;/strong&gt;&lt;br&gt;A                5.3 &lt;br&gt;B            454 &lt;br&gt;C           5454 &lt;br&gt;D            454 &lt;br&gt;E              54 &lt;br&gt;F              52 &lt;br&gt;G              5.3 &lt;br&gt;H            564 &lt;br&gt;I               58 &lt;br&gt;J             588          55&lt;br&gt;K            454        565.56&lt;br&gt;L              54          55 &lt;p&gt;If we upload this file to SQL Server using import/export wizard, the wizard creats a table with three columns (nvarchar, float and nvarchar) and load all data from Col1 and Col2 but Col3. The thrid column in the table contains null. Even if you use SSIS or procedure with OPENROWSET, 