<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5083207193778237668</atom:id><lastBuildDate>Mon, 09 Sep 2024 03:14:28 +0000</lastBuildDate><category>.net</category><category>C#</category><category>code</category><category>sql server</category><category>extension methods</category><category>helper class</category><title>Good or bad, but habits</title><description>&lt;br&gt;my memory extension in the cloud. Is that what they call &quot;augmented reality&quot;?</description><link>http://yepthatspossible.blogspot.com/</link><managingEditor>noreply@blogger.com (Guirec)</managingEditor><generator>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5083207193778237668.post-5645696009055532104</guid><pubDate>Wed, 09 Dec 2009 16:25:00 +0000</pubDate><atom:updated>2009-12-09T18:08:26.798+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">sql server</category><title>How I saved my company from piracy by writing to CONTEXT_INFO from my ASP.Net application</title><atom:summary type="text">Ok, that one is a bit hardcore but helped me a few times... Here I&#39;ll demonstrate how with a very little impact on your code you can pass a variable from C# code to Sql Server to make it available as a session variable during your connection lifetime.
Let&#39;s try and explain through a concrete example: 
You are architect at Colors, you know, the multi-all company (multi-national, multi-technology, </atom:summary><link>http://yepthatspossible.blogspot.com/2009/12/how-i-saved-my-company-from-piracy-by.html</link><author>noreply@blogger.com (Guirec)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5083207193778237668.post-2488966430689291997</guid><pubDate>Wed, 09 Dec 2009 15:35:00 +0000</pubDate><atom:updated>2009-12-09T18:06:10.840+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">code</category><category domain="http://www.blogger.com/atom/ns#">extension methods</category><category domain="http://www.blogger.com/atom/ns#">helper class</category><title>C#: Convert an array of bytes to an hexadecimal string</title><atom:summary type="text">&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;
public static class HexadecimalConverter
    {
        static readonly string[] fLookupTable;
        static HexadecimalConverter()
        {
            // Populates cache
            fLookupTable = new string[256];
            for (int i = 0; i &amp;lt; fLookupTable.Length; i++)
                fLookupTable[i] = i.ToString(&quot;X2&quot;);
        }
</atom:summary><link>http://yepthatspossible.blogspot.com/2009/12/convert-array-of-bytes-to-hexadecimal.html</link><author>noreply@blogger.com (Guirec)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5083207193778237668.post-2735604602695245067</guid><pubDate>Tue, 08 Dec 2009 13:29:00 +0000</pubDate><atom:updated>2009-12-09T12:22:35.996+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">code</category><category domain="http://www.blogger.com/atom/ns#">sql server</category><title>SQL Server: startup procedures</title><atom:summary type="text">It is very likely that one day or other you&#39;d want to run a sql task at startup of your server. What for? You probably know better than I do but here are a few ideas:
Create a denormalized table in tempdb
Check sanity of the server
Start a monitoring process


Whatever... The following script configures your db server for launching (in each database) the stored procedure called _startup when </atom:summary><link>http://yepthatspossible.blogspot.com/2009/12/sql-server-startup-procedures.html</link><author>noreply@blogger.com (Guirec)</author><thr:total>0</thr:total></item></channel></rss>