<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Girishs&#039;s Blog</title>
	<atom:link href="http://girishs.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://girishs.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 10 Mar 2010 00:34:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='girishs.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Girishs&#039;s Blog</title>
		<link>http://girishs.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://girishs.wordpress.com/osd.xml" title="Girishs&#039;s Blog" />
	<atom:link rel='hub' href='http://girishs.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Encrypting Query String</title>
		<link>http://girishs.wordpress.com/2010/03/10/encrypting-query-string/</link>
		<comments>http://girishs.wordpress.com/2010/03/10/encrypting-query-string/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 00:34:01 +0000</pubDate>
		<dc:creator>girishs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://girishs.wordpress.com/2010/03/10/encrypting-query-string/</guid>
		<description><![CDATA[using System; using System.IO; using System.Text; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Security.Cryptography; namespace QueryStringEncryption { public class CustomQueryStringModule:IHttpModule { #region IHttpModule Members public void Dispose() { // Nothing to dispose } public void Init(HttpApplication context) { context.BeginRequest += new EventHandler(context_BeginRequest); } #endregion private [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=23&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>using System;<br />
using System.IO;<br />
using System.Text;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.HtmlControls;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Security.Cryptography;</p>
<p>namespace QueryStringEncryption<br />
{<br />
    public class CustomQueryStringModule:IHttpModule<br />
    {</p>
<p>        #region IHttpModule Members</p>
<p>        public void Dispose()<br />
        {<br />
            // Nothing to dispose<br />
        }</p>
<p>        public void Init(HttpApplication context)<br />
        {<br />
            context.BeginRequest += new EventHandler(context_BeginRequest);<br />
        }</p>
<p>        #endregion</p>
<p>        private const string PARAMETER_NAME = &#8220;enc=&#8221;;<br />
        private const string ENCRYPTION_KEY = &#8220;key&#8221;;</p>
<p>        void context_BeginRequest(object sender, EventArgs e)<br />
        {<br />
            HttpContext context = HttpContext.Current;<br />
            if (context.Request.Url.OriginalString.Contains(&#8220;aspx&#8221;) &amp;&amp; context.Request.RawUrl.Contains(&#8220;?&#8221;))<br />
            {<br />
                string query = ExtractQuery(context.Request.RawUrl);<br />
                string path = GetVirtualPath();</p>
<p>                if (query.StartsWith(PARAMETER_NAME, StringComparison.OrdinalIgnoreCase))<br />
                {<br />
                    // Decrypts the query string and rewrites the path.<br />
                    string rawQuery = query.Replace(PARAMETER_NAME, string.Empty);<br />
                    string decryptedQuery = Decrypt(rawQuery);<br />
                    context.RewritePath(path, string.Empty, decryptedQuery);<br />
                }<br />
                else if (context.Request.HttpMethod == &#8220;GET&#8221;)<br />
                {<br />
                    // Encrypt the query string and redirects to the encrypted URL.<br />
                    // Remove if you don&#8217;t want all query strings to be encrypted automatically.<br />
                    string encryptedQuery = Encrypt(query);<br />
                    context.Response.Redirect(path + encryptedQuery);<br />
                }<br />
            }<br />
        }</p>
<p>        ///<br />
        /// Parses the current URL and extracts the virtual path without query string.<br />
        ///<br />
        /// The virtual path of the current URL.<br />
        private static string GetVirtualPath()<br />
        {<br />
            string path = HttpContext.Current.Request.RawUrl;<br />
            path = path.Substring(0, path.IndexOf(&#8220;?&#8221;));<br />
            path = path.Substring(path.LastIndexOf(&#8220;/&#8221;) + 1);<br />
            return path;<br />
        }</p>
<p>        ///<br />
        /// Parses a URL and returns the query string.<br />
        ///<br />
        /// The URL to parse.<br />
        /// The query string without the question mark.<br />
        private static string ExtractQuery(string url)<br />
        {<br />
            int index = url.IndexOf(&#8220;?&#8221;) + 1;<br />
            return url.Substring(index);<br />
        }</p>
<p>        #region Encryption/decryption</p>
<p>        ///<br />
        /// The salt value used to strengthen the encryption.<br />
        ///<br />
        private readonly static byte[] SALT = Encoding.ASCII.GetBytes(ENCRYPTION_KEY.Length.ToString());</p>
<p>        ///<br />
        /// Encrypts any string using the Rijndael algorithm.<br />
        ///<br />
        /// The string to encrypt.<br />
        /// A Base64 encrypted string.<br />
        public static string Encrypt(string inputText)<br />
        {<br />
            RijndaelManaged rijndaelCipher = new RijndaelManaged();<br />
            byte[] plainText = Encoding.Unicode.GetBytes(inputText);<br />
            PasswordDeriveBytes SecretKey = new PasswordDeriveBytes(ENCRYPTION_KEY, SALT);</p>
<p>            using (ICryptoTransform encryptor = rijndaelCipher.CreateEncryptor(SecretKey.GetBytes(32), SecretKey.GetBytes(16)))<br />
            {<br />
                using (MemoryStream memoryStream = new MemoryStream())<br />
                {<br />
                    using (CryptoStream cryptoStream = new CryptoStream(memoryStream, encryptor, CryptoStreamMode.Write))<br />
                    {<br />
                        cryptoStream.Write(plainText, 0, plainText.Length);<br />
                        cryptoStream.FlushFinalBlock();<br />
                        return &#8220;?&#8221; + PARAMETER_NAME + Convert.ToBase64String(memoryStream.ToArray());<br />
                    }<br />
                }<br />
            }<br />
        }</p>
<p>        ///<br />
        /// Decrypts a previously encrypted string.<br />
        ///<br />
        /// The encrypted string to decrypt.<br />
        /// A decrypted string.<br />
        public static string Decrypt(string inputText)<br />
        {<br />
            RijndaelManaged rijndaelCipher = new RijndaelManaged();<br />
            byte[] encryptedData = Convert.FromBase64String(inputText);<br />
            PasswordDeriveBytes secretKey = new PasswordDeriveBytes(ENCRYPTION_KEY, SALT);</p>
<p>            using (ICryptoTransform decryptor = rijndaelCipher.CreateDecryptor(secretKey.GetBytes(32), secretKey.GetBytes(16)))<br />
            {<br />
                using (MemoryStream memoryStream = new MemoryStream(encryptedData))<br />
                {<br />
                    using (CryptoStream cryptoStream = new CryptoStream(memoryStream, decryptor, CryptoStreamMode.Read))<br />
                    {<br />
                        byte[] plainText = new byte[encryptedData.Length];<br />
                        int decryptedCount = cryptoStream.Read(plainText, 0, plainText.Length);<br />
                        return Encoding.Unicode.GetString(plainText, 0, decryptedCount);<br />
                    }<br />
                }<br />
            }<br />
        }</p>
<p>        #endregion<br />
    }<br />
}</p>
<p>Web.Config Settings:</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishs.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishs.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishs.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishs.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishs.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishs.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishs.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishs.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishs.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishs.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishs.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishs.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishs.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishs.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=23&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishs.wordpress.com/2010/03/10/encrypting-query-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d11cf67aaf092951e42ab4480ccbfe92?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">girishs</media:title>
		</media:content>
	</item>
		<item>
		<title>Use of Table Valued Parameters in SQL 2008</title>
		<link>http://girishs.wordpress.com/2009/08/24/use-of-table-valued-parameters-in-sql-2008/</link>
		<comments>http://girishs.wordpress.com/2009/08/24/use-of-table-valued-parameters-in-sql-2008/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 04:01:48 +0000</pubDate>
		<dc:creator>girishs</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://girishs.wordpress.com/?p=20</guid>
		<description><![CDATA[A common problem scenario in Web/Windows based application includes a Datagrid control displaying a list and then on Submit the items in the grid need to inserted into a table in the Database. The traditional approach for this would be: 1. Create SP 2. Use .NET code to call the SP for each row in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=20&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A common problem scenario in Web/Windows based application includes a Datagrid control displaying a list and then on Submit the items in the grid need to inserted into a table in the Database. The traditional approach for this would be:</p>
<p>1. Create SP<br />
2. Use .NET code to call the SP for each row in the grid.</p>
<p>Example: Create Table Employee(FirstName varchar(50), LastName varchar(50), Phone varchar(50))</p>
<p>Create Procedure InsertEmployee<br />
       @FirstName varchar(50),<br />
       @LastName varchar(50),<br />
       @Phone varchar(50)<br />
AS<br />
  INSERT INTO Employee (FirstName,LastName,Phone)<br />
  VALUES (@FirstName,@LastName,@Phone)<br />
GO</p>
<p>.NET Side of Code:</p>
<p> using (SqlConnection conn = new SqlConnection(&#8220;&#8230;&#8221;))<br />
{<br />
  SqlCommand cmd = conn.CreateCommand();<br />
  cmd.CommandType = System.Data.CommandType.StoredProcedure;<br />
  cmd.CommandText = &#8220;dbo.InsertEmployee&#8221;;<br />
  cmd.Parameters.AddWithValue(&#8220;@FirstName&#8221;, (string)row["Name"]);<br />
  cmd.Parameters.AddWithValue(&#8220;@LastName&#8221;, (string)row["City"]);<br />
  cmd.Parameters.AddWithValue(&#8220;@Phone&#8221;, (string)row["Phone"]);<br />
  conn.Open();<br />
  cmd.ExecuteNonQuery();<br />
}</p>
<p>Using the new Table Value Parameter feature in SQL 2008, we can create a SP that takes a Table as the parameter.</p>
<p>1. Create a new User-Defined Table Type as below</p>
<p>        Create type MyTableType As Table<br />
        (<br />
              FirstName varchar(50),<br />
              LastName varchar(50),<br />
              Phone varchar(50)<br />
        )   </p>
<p>2. Create a SP that takes the above UDT as a parameter<br />
    Create Procedure InsertEmployeesMany<br />
    (<br />
            @MyTableType MyTableType readonly<br />
    )</p>
<p>    AS</p>
<p>      INSERT INTO Employee (FirstName,LastName,Phone)<br />
      SELECT FirstName,LastName,Phone<br />
      FROM @MyTableType;<br />
3. Executing the Above SP using Script /.NET Code</p>
<p>    T-SQL:<br />
       Declare @Employee_temp MyTableType<br />
       INSERT INTO  @Employee_temp VALUES(&#8220;FirstName1&#8243;,&#8221;LastName1&#8243;,&#8221;234567&#8243;)<br />
       INSERT INTO  @Employee_temp VALUES(&#8220;FirstName2&#8243;,&#8221;LastName2&#8243;,&#8221;222222&#8243;)</p>
<p>       Execute InsertEmployeesMany @Employee_temp </p>
<p>    .NET Code:</p>
<p>    // Create a data table, and provide its structure<br />
    DataTable employeeTable = new DataTable();<br />
    employeeTable .Columns.Add(&#8220;FirstName&#8221;, typeof(string));<br />
    employeeTable .Columns.Add(&#8220;LastName&#8221;, typeof(string));<br />
    employeeTable .Columns.Add(&#8220;Phone&#8221;, typeof(string));</p>
<p>   // Fill with rows<br />
   employeeTable .Rows.Add(&#8220;FirstName1&#8243;,&#8221;LastName1&#8243;,&#8221;234567&#8243;);<br />
   employeeTable .Rows.Add(&#8220;FirstName2&#8243;,&#8221;LastName2&#8243;,&#8221;222222&#8243;);</p>
<p>   //Invoke the SP<br />
  using (SqlConnection conn = new SqlConnection(&#8220;&#8230;&#8221;))<br />
  {<br />
    SqlCommand cmd = conn.CreateCommand();<br />
    cmd.CommandType = System.Data.CommandType.StoredProcedure;<br />
    cmd.CommandText = &#8220;dbo.InsertEmployeesMany&#8221;;<br />
    SqlParameter param = cmd.Parameters.AddWithValue(&#8220;@MyTableType &#8220;, employeeTable );<br />
    conn.Open();<br />
    cmd.ExecuteNonQuery();<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishs.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishs.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishs.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishs.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishs.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishs.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishs.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishs.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishs.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishs.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishs.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishs.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishs.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishs.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=20&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishs.wordpress.com/2009/08/24/use-of-table-valued-parameters-in-sql-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d11cf67aaf092951e42ab4480ccbfe92?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">girishs</media:title>
		</media:content>
	</item>
		<item>
		<title>Handling Database script changes within VS2008 IDE</title>
		<link>http://girishs.wordpress.com/2009/07/24/handling-database-script-changes-within-vs2008-ide/</link>
		<comments>http://girishs.wordpress.com/2009/07/24/handling-database-script-changes-within-vs2008-ide/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 04:08:42 +0000</pubDate>
		<dc:creator>girishs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://girishs.wordpress.com/?p=14</guid>
		<description><![CDATA[http://www.vitalygorn.com/blog/post/2008/01/Handling-Database-easily-with-Visual-Studio-2008.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=14&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>http://www.vitalygorn.com/blog/post/2008/01/Handling-Database-easily-with-Visual-Studio-2008.aspx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishs.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=14&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishs.wordpress.com/2009/07/24/handling-database-script-changes-within-vs2008-ide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d11cf67aaf092951e42ab4480ccbfe92?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">girishs</media:title>
		</media:content>
	</item>
		<item>
		<title>Extracting only Time in SQL Datetime Datatype</title>
		<link>http://girishs.wordpress.com/2009/07/16/extracting-only-time-in-sql-datetime-datatype/</link>
		<comments>http://girishs.wordpress.com/2009/07/16/extracting-only-time-in-sql-datetime-datatype/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 11:28:46 +0000</pubDate>
		<dc:creator>girishs</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://girishs.wordpress.com/?p=12</guid>
		<description><![CDATA[DECLARE @MyDate datetime SET @MyDate = GetDATE() DECLARE @MyResult varchar(30) SELECT MyDate = convert(varchar(10), @MyDate, 101) + stuff( right( convert( varchar(26), @MyDate, 109 ), 15 ), 7, 7, &#8216; &#8216; ) SET @MyResult = convert(varchar(10), @MyDate, 101) + stuff( right( convert( varchar(26), @MyDate, 109 ), 15 ), 7, 7, &#8216; &#8216; ) SELECT LTRIM(RTRIM(SUBSTRING(@MyResult,11,LEN(@MyResult)-10)))<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=12&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DECLARE @MyDate datetime<br />
SET @MyDate = GetDATE()<br />
DECLARE @MyResult varchar(30)</p>
<p>SELECT MyDate = convert(varchar(10), @MyDate, 101) +<br />
stuff( right( convert( varchar(26), @MyDate, 109 ), 15 ), 7, 7, &#8216; &#8216; )</p>
<p>SET @MyResult = convert(varchar(10), @MyDate, 101) +<br />
stuff( right( convert( varchar(26), @MyDate, 109 ), 15 ), 7, 7, &#8216; &#8216; )</p>
<p>SELECT LTRIM(RTRIM(SUBSTRING(@MyResult,11,LEN(@MyResult)-10)))</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishs.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishs.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishs.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishs.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishs.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishs.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishs.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishs.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishs.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishs.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishs.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishs.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishs.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishs.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=12&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishs.wordpress.com/2009/07/16/extracting-only-time-in-sql-datetime-datatype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d11cf67aaf092951e42ab4480ccbfe92?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">girishs</media:title>
		</media:content>
	</item>
		<item>
		<title>Failed to access IIS metabase problem</title>
		<link>http://girishs.wordpress.com/2009/07/14/failed-to-access-iis-metabase-problem/</link>
		<comments>http://girishs.wordpress.com/2009/07/14/failed-to-access-iis-metabase-problem/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 03:13:17 +0000</pubDate>
		<dc:creator>girishs</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://girishs.wordpress.com/?p=9</guid>
		<description><![CDATA[HostingEvironmentException error occurs when attempting to run ASP.NET 2.0 application (or WCF Service) if IIS is installed after .NET Framework. To solve this go to VS 2008 command prompt and type aspnet_regiis.exe -i this will instal ASP.NET and the app should now work.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=9&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>HostingEvironmentException error occurs when attempting to run ASP.NET 2.0 application (or WCF Service) if IIS is installed after .NET Framework. To solve this go to VS 2008 command prompt and type aspnet_regiis.exe -i this will instal ASP.NET  and the app should now work.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishs.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishs.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishs.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishs.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishs.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishs.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishs.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishs.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishs.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishs.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishs.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishs.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishs.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishs.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=9&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishs.wordpress.com/2009/07/14/failed-to-access-iis-metabase-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d11cf67aaf092951e42ab4480ccbfe92?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">girishs</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF interview drill</title>
		<link>http://girishs.wordpress.com/2009/07/07/wcf-interview-drill/</link>
		<comments>http://girishs.wordpress.com/2009/07/07/wcf-interview-drill/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 11:23:52 +0000</pubDate>
		<dc:creator>girishs</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://girishs.wordpress.com/?p=6</guid>
		<description><![CDATA[The standard interview one get&#8217;s asked about WCF. What are the advantages of it in implementing SOA based solutions. My answer in trying to convince them that I know about SOA is: 1. Allows to build a service / web mehtod that can be consumed by a client or service using a variety of protocols. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=6&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The standard interview one get&#8217;s asked about WCF. What are the advantages of it in implementing SOA based solutions. My answer in trying to convince them that I know about SOA is:<br />
1. Allows to build a service / web mehtod that can be consumed by a client or service using a variety of protocols.<br />
2.Xml Based message exchanges as before, but the interviewer will be smiling the moment you say exchange of data contracts.<br />
3.Enhanced security stack that can implemented at the channel and message level.</p>
<p>I would like to add to the list&#8230;..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/girishs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/girishs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/girishs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/girishs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/girishs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/girishs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/girishs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/girishs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/girishs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/girishs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/girishs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/girishs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/girishs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/girishs.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=girishs.wordpress.com&amp;blog=8472037&amp;post=6&amp;subd=girishs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://girishs.wordpress.com/2009/07/07/wcf-interview-drill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d11cf67aaf092951e42ab4480ccbfe92?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">girishs</media:title>
		</media:content>
	</item>
	</channel>
</rss>
