<?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>Swetha's Blog</title>
	<atom:link href="http://swethadanda.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://swethadanda.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 01 Mar 2011 10:39:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='swethadanda.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Swetha's Blog</title>
		<link>http://swethadanda.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://swethadanda.wordpress.com/osd.xml" title="Swetha&#039;s Blog" />
	<atom:link rel='hub' href='http://swethadanda.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to break the Inherited Parent site Permissions hierarchy for a Page</title>
		<link>http://swethadanda.wordpress.com/2011/03/01/how-to-break-the-inherited-parent-site-permissions-hierarchy-for-a-page/</link>
		<comments>http://swethadanda.wordpress.com/2011/03/01/how-to-break-the-inherited-parent-site-permissions-hierarchy-for-a-page/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 10:36:29 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[breaking the Inherited Parent site Permissions hierarchy for a Page]]></category>
		<category><![CDATA[Sharepoint permission hierarchy]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=151</guid>
		<description><![CDATA[When a page is created under a site, by default the parent permission levels are inherited for that page. There may be a need that all the inherited should not access the page created. In this scenario the inherited access levels need to be broken, such that only specified users/groups can access the page. Steps [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=151&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When a page is created under a site, by default the parent permission levels are inherited for that page. There may be a need that all the inherited should not access the page created. In this scenario the inherited access levels need to be broken, such that only specified users/groups can access the page.</p>
<p>Steps to break the hierarchy:</p>
<p>1. Click on the Site Actions &#8211;&gt; View All Site Content&#8211;&gt; Pages&#8211;&gt;Click on the menu of the specific Page &#8211;&gt; Click Manage Permissions<br />
2.Permissions page appear. In that page the user can only see Actions option and list of groups/users which are inherited from parent site.<br />
3.Click on Actions&#8211;&gt; Edit Permissions<br />
4.A pop up appears. Click OK.<br />
5.Now check the check boxes of restricted users/groups&#8211;&gt; Click on Actions&#8211;&gt;Click on Remove User Permissions<br />
6.Remove all inherited users/user Groups<br />
7.Finally the inherited permissions are removed and now the user can add new user Groups and can specify the permissions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=151&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2011/03/01/how-to-break-the-inherited-parent-site-permissions-hierarchy-for-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>
	</item>
		<item>
		<title>why to use and when to use href=&#8221;JavaScript:void(0);&#8221;</title>
		<link>http://swethadanda.wordpress.com/2009/12/23/why-to-use-and-when-to-use-hrefjavascriptvoid0/</link>
		<comments>http://swethadanda.wordpress.com/2009/12/23/why-to-use-and-when-to-use-hrefjavascriptvoid0/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:14:26 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[href="JavaScript:void(0);"]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=140</guid>
		<description><![CDATA[                             If u want a anchor tag in ur page, if u dont want to direct the page  to any other page on click  or if u dont want to reload the page i.e if u dont want to specify any href then use href=&#8221;JavaScript:void(0);&#8221; Some times user wants to do some action like hiding a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=140&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>                             If u want a anchor tag in ur page, if u dont want to direct the page  to any other page on click <br />
or if u dont want to reload the page i.e if u dont want to specify any href then use href=&#8221;JavaScript:void(0);&#8221;</p>
<p>Some times user wants to do some action like hiding a panel when a anchor tag is clicked but at the same time the user dont want to reload the page  in such cases this is helpful</p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;</span></span><span style="font-size:x-small;color:#a31515;">a</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#ff0000;">href</span><span style="font-size:x-small;color:#0000ff;">=&#8221;</span><span style="font-size:x-small;color:#0000ff;">JavaScript:void(0);&#8221; </span><span style="font-size:x-small;color:#ff0000;">onclick</span><span style="font-size:x-small;color:#0000ff;">=&#8221;viewallpost();&#8221;</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">&gt;</span><span style="font-size:x-small;">View All Posts</span><span style="font-size:x-small;color:#0000ff;">&lt;/</span><span style="font-size:x-small;color:#a31515;">a</span><span style="font-size:x-small;color:#0000ff;">&gt;</span></p>
<p><strong><span style="color:#ff6600;">or</span></strong></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;</span></span><span style="font-size:x-small;color:#a31515;">a</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#ff0000;">href</span><span style="font-size:x-small;color:#0000ff;">=&#8221;#&#8221;</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#ff0000;">onclick</span><span style="font-size:x-small;color:#0000ff;">=&#8221;viewallpost(); return false;&#8221;</span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;">&gt;</span><span style="font-size:x-small;">View All Posts</span><span style="font-size:x-small;color:#0000ff;">&lt;/</span><span style="font-size:x-small;color:#a31515;">a</span><span style="font-size:x-small;color:#0000ff;">&gt;</span></p>
<p><strong><span style="color:#333300;">Hope this helps u</span></strong></p>
<p><strong><span style="color:#ff6600;"><span style="color:#333300;">happy coding <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></span></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=140&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2009/12/23/why-to-use-and-when-to-use-hrefjavascriptvoid0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>
	</item>
		<item>
		<title>Why connection string is written in web.config file.</title>
		<link>http://swethadanda.wordpress.com/2009/12/23/why-connection-string-is-written-in-web-config-file/</link>
		<comments>http://swethadanda.wordpress.com/2009/12/23/why-connection-string-is-written-in-web-config-file/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 10:46:24 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Asp.net]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=130</guid>
		<description><![CDATA[&#60;appSettings&#62;add key=&#8220;connectionString&#8220; value=&#8220;Data Source=ws14(name of the machine in which the data base is present);Initial Catalog=BlogWeb( name of the database used);uid=dev;pwd=dev&#8220;/&#62; appSettings&#62; Connection strings should be declared in Web.config file for two reasons mainly a)  If any change is needed then if we update the code at one place then its enough. b) During deployments the usernames [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=130&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;</span></span><span style="font-size:x-small;color:#a31515;">appSettings</span><span style="font-size:x-small;color:#0000ff;">&gt;</span><span style="font-size:x-small;color:#a31515;">add</span><span style="font-size:x-small;color:#0000ff;"> </span><span style="font-size:x-small;color:#ff0000;">key</span><span style="font-size:x-small;color:#0000ff;">=</span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;">connectionString</span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;"> </span><span style="font-size:x-small;color:#ff0000;">value</span><span style="font-size:x-small;color:#0000ff;">=</span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;">Data Source=ws14(name of the machine in which the data base is present);Initial Catalog=BlogWeb( name of the database used);uid=dev;pwd=dev</span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;">/&gt; </span><span style="font-size:x-small;color:#a31515;">appSettings</span><span style="font-size:x-small;color:#0000ff;">&gt;</span></p>
<p>Connection strings should be declared in Web.config file for two reasons mainly<br />
a)  If any change is needed then if we update the code at one place then its enough.</p>
<p>b) During deployments the usernames passwords and servers keep on chainging so it would be easy to find it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=130&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2009/12/23/why-connection-string-is-written-in-web-config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Establish a connection to DB</title>
		<link>http://swethadanda.wordpress.com/2009/12/23/how-to-establish-a-connection-to-db/</link>
		<comments>http://swethadanda.wordpress.com/2009/12/23/how-to-establish-a-connection-to-db/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 10:37:16 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[How to establish a connection to database]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=122</guid>
		<description><![CDATA[This code should be written in services class files. public class dataBaseConnection {     string connectionString;     public dataBaseConnection()     {         connectionString = ConfigurationManager.ConnectionStrings["name of connection string given in web.config file"].ConnectionString;     }        public int ExecuteNonQuery(string commandText)     {         SqlConnection connection = new SqlConnection(connectionString);         SqlCommand command = new SqlCommand(commandText, connection);         [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=122&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This code should be written in services class files.</p>
<p>public class dataBaseConnection<br />
{<br />
    string connectionString;</p>
<p>    public dataBaseConnection()<br />
    {<br />
        connectionString = ConfigurationManager.ConnectionStrings["name of connection string given in web.config file"].ConnectionString;<br />
    }   </p>
<p>    public int ExecuteNonQuery(string commandText)<br />
    {<br />
        SqlConnection connection = new SqlConnection(connectionString);<br />
        SqlCommand command = new SqlCommand(commandText, connection);<br />
        connection.Open();<br />
        int noRecordsEffected = command.ExecuteReader();<br />
        connection.Close();<br />
        return noRecordsEffected;<br />
    }</p>
<p>   } </p>
<p> sqlconnection- a class which is used to establish connection to db<br />
   sqlcommand &#8211; class used to pass sql command<br />
sqldatareader- reads  the sql query and its has a method execute reader()<br />
connection.open- opens db connection<br />
executereader- executes the query in the db<br />
connection.close- closes the connection</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=122&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2009/12/23/how-to-establish-a-connection-to-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>
	</item>
		<item>
		<title>How  to save html tags to DB along with the text data when text editor is used.</title>
		<link>http://swethadanda.wordpress.com/2009/12/23/how-to-save-html-tags-to-db-along-with-the-text-data-when-text-editor-is-used/</link>
		<comments>http://swethadanda.wordpress.com/2009/12/23/how-to-save-html-tags-to-db-along-with-the-text-data-when-text-editor-is-used/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 09:58:05 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[How to save html tags to DB along with the text data when text editor is used.]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=118</guid>
		<description><![CDATA[set validate Request=false in the &#60;%@ Page Title=&#8221;" Language=&#8221;C#&#8221; MasterPageFile=&#8221;~/WebBlogMasterPage.master&#8221; AutoEventWireup=&#8221;true&#8221; CodeFile=&#8221;Create_Post.aspx.cs&#8221;  Inherits=&#8221;Default2&#8243; ValidateRequest=&#8221;false&#8221; %&#62;  of  aspx page   in order to save html tags also along with the text to database when text editor is used.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=118&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>set validate Request=false in the<br />
&lt;%@ Page Title=&#8221;" Language=&#8221;C#&#8221; MasterPageFile=&#8221;~/WebBlogMasterPage.master&#8221;<br />
AutoEventWireup=&#8221;true&#8221; CodeFile=&#8221;Create_Post.aspx.cs&#8221;<br />
 Inherits=&#8221;Default2&#8243; <strong>ValidateRequest=&#8221;false&#8221;</strong> %&gt;  of  aspx page  </p>
<p>in order to save html tags also along with the text to<br />
database when text editor is used.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=118&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2009/12/23/how-to-save-html-tags-to-db-along-with-the-text-data-when-text-editor-is-used/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add test cases in VS2010 Lab manager</title>
		<link>http://swethadanda.wordpress.com/2009/07/20/how-to-add-test-cases-in-vs2010-lab-manager/</link>
		<comments>http://swethadanda.wordpress.com/2009/07/20/how-to-add-test-cases-in-vs2010-lab-manager/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 12:47:04 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Microsoft Test and Lab manager]]></category>
		<category><![CDATA[Vs2010 Lab manager]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=89</guid>
		<description><![CDATA[Hi friends, Recently I have added test cases in Microsoft Test and lab manager.  Thought of sharing my experience with you . Instead of  writing test cases in excel sheet and saving them in saperate excel sheets we can have all the test cases at a single place and from this only we can assign [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=89&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi friends,</p>
<p>Recently I have added test cases in Microsoft Test and lab manager.  Thought of sharing my experience with you . Instead of  writing test cases in excel sheet and saving them in saperate excel sheets we can have all the test cases at a single place and from this only we can assign them to any one we need and we also have an option to specify the test environment configuration i.e, browsers, operating systems information. This is very useful and user friendly. As for now it has some flaws also. let&#8217;s discuss them later</p>
<p>Now let us look into how to add test cases in lab manager</p>
<p><strong>Steps to add Test Cases:</strong></p>
<p>1. Open Lab manager and connect to the Tfs server<strong>.</strong></p>
<p>2. Click on Contents tab  in Plan section</p>
<p>3.Click on <strong>New</strong> and select <strong>Suite</strong></p>
<p><img class="aligncenter size-full wp-image-108" title="new suit" src="http://swethadanda.files.wordpress.com/2009/07/two1.png?w=510&#038;h=207" alt="new suit" width="510" height="207" /></p>
<dl>
<dt></dt>
</dl>
<p>5.   After Creating a new Suite.</p>
<p><img class="aligncenter size-full wp-image-96" title="After creating a new suite" src="http://swethadanda.files.wordpress.com/2009/07/one1.png?w=634&#038;h=225" alt="After creating a new suite" width="634" height="225" /></p>
<p>6.    We can create many child Suits for a parent suit. Create a new test cases for any suite by clicking on the <strong>New </strong></p>
<p><strong> </strong></p>
<p style="text-align:center;"><strong><img class="aligncenter size-full wp-image-107" title="test suit" src="http://swethadanda.files.wordpress.com/2009/07/7.png?w=663&#038;h=272" alt="test suit" width="663" height="272" /> </strong></p>
<p>7.  Add the title, test steps and expected results. using this we can also Assing this test cases to any tester.</p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-98" title="writing test steps" src="http://swethadanda.files.wordpress.com/2009/07/4.png?w=612&#038;h=505" alt="writing test steps" width="612" height="505" /></p>
<p>8. Save the test cases by clicking on <strong>Save and Close</strong></p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-99" title="Save and close" src="http://swethadanda.files.wordpress.com/2009/07/5.png?w=663&#038;h=554" alt="Save and close" width="663" height="554" /></p>
<p>Hope this helps you to and give you some basic idea.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=89&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2009/07/20/how-to-add-test-cases-in-vs2010-lab-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2009/07/two1.png" medium="image">
			<media:title type="html">new suit</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2009/07/one1.png" medium="image">
			<media:title type="html">After creating a new suite</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2009/07/7.png" medium="image">
			<media:title type="html">test suit</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2009/07/4.png" medium="image">
			<media:title type="html">writing test steps</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2009/07/5.png" medium="image">
			<media:title type="html">Save and close</media:title>
		</media:content>
	</item>
		<item>
		<title>Unable to load DLL&#8217;Microsoft.VisualStudio.QualityTools.RecorderBarBHO90.dll&#8217;: The specified module could not be found</title>
		<link>http://swethadanda.wordpress.com/2009/06/16/80/</link>
		<comments>http://swethadanda.wordpress.com/2009/06/16/80/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 10:48:43 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Unable to load DLL 'Microsoft.VisualStudio.QualityTools.RecorderBarBHO90.dll': The specified module could not be found]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=80</guid>
		<description><![CDATA[Hello, I was running into a problem when I was trying to record a webtest: - In VS2008, when I select &#8220;Test-&#62;New Test&#8221; and then &#8220;Web Test&#8221;, the browser is displayed but the Web Test Recorder pane is not  getting displayed in the browser. I select &#8220;View-&#62;Explorer Bar-&#62;Web Test Recorder 9.0&#8243; from the browser menu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=80&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
I was running into a problem when I was trying to record a webtest:<br />
- In VS2008, when I select &#8220;Test-&gt;New Test&#8221; and then &#8220;Web Test&#8221;, the browser is displayed but the Web Test Recorder pane is not  getting displayed in the browser. I select &#8220;View-&gt;Explorer Bar-&gt;Web Test Recorder 9.0&#8243; from the browser menu to display the Web Test Recorder pane, however no URLs are logged in the pane. When I try to click &#8220;Stop&#8221; in the Web Test Recorder pane, the following error is displayed:</p>
<p>&#8220;<strong>Unable to load DLL &#8216;Microsoft.VisualStudio.QualityTools.RecorderBarBHO90.dll&#8217;: The specified module could not be found</strong>&#8220;</p>
<p>I was able to record web tests for the first week or so after installing VS2008, but the error above started occuring today.</p>
<p>I&#8217;ve tried uninstalling VS2008 and re-installing but I&#8217;m still having the same problem.</p>
<p><strong>Finally I got the solution:</strong></p>
<p>We were able to resolve the problem by copying</p>
<p><strong>Microsoft.VisualStudio.QualityTools.RecorderBarBHO90.dll </strong>present in <strong></strong></p>
<p><strong>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.QualityTools.RecorderBarBHO90.dll</strong></p>
<p>to the</p>
<p>&#8220;<strong>C:\Program Files\Internet Explorer&#8221; folder</strong>. IE finds the DLL now and the web test recorder pane is functioning correctly</p>
<p>Hope this is helpful &#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=80&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2009/06/16/80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>
	</item>
		<item>
		<title>Sql  Server Profiler</title>
		<link>http://swethadanda.wordpress.com/2008/12/17/sql-server-profiler/</link>
		<comments>http://swethadanda.wordpress.com/2008/12/17/sql-server-profiler/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 05:18:25 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Finding the performance issues of tsql and sps using sqlprofiler]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=33</guid>
		<description><![CDATA[SQL  Server Profiler is a tool to debug, troubleshoot, monitor, and measure your application&#8217;s SQL statements and stored procedures. SQL Profiler captures activity occurring in SQL Server, driven by requests from your client application. Use ful for Testing  SQL statements and stored procedures in the development phase of a project by single-stepping through statements to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=33&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">SQL  Server Profiler is a tool to debug, troubleshoot, monitor, and measure your application&#8217;s SQL statements and stored procedures. SQL Profiler captures activity occurring in SQL Server, driven by requests from your client application.</p>
<p class="MsoNormal">Use ful for Testing  SQL statements and stored procedures in the development phase of a project by single-stepping through statements to confirm that the code works as expected. Troubleshooting problems in SQL Server by capturing events on a production system and replaying them on a test system. This is useful for testing or debugging purposes and allows users to continue using the production system without interference.</p>
<p class="MsoNormal"><span style="color:#ff9900;"><strong>How to use Sql Server  profiler:</strong></span></p>
<p class="MsoNormal">Sql Server profiler is available with the sql server it self. Its a performance  tool used to know the performance of the applications sql statements like stored procedures.</p>
<p class="MsoNormal">It is helpful to know the stored procedures performance like the time taken to by the stored procedure to run and also the number of times the stored proceure is used etc.</p>
<p class="MsoNormal">* Open  sql  server profiler from the start menu as shown in the figure</p>
<p class="MsoNormal"><span style="font-size:12pt;line-height:115%;"><img class="aligncenter size-full wp-image-34" title="sql-profiler" src="http://swethadanda.files.wordpress.com/2008/12/sql-profiler.jpg?w=504&#038;h=196" alt="sql-profiler" width="504" height="196" /></span></p>
<p class="MsoNormal">* Fill the details in the connect to server window<span style="font-size:12pt;line-height:115%;">.</span></p>
<p class="MsoNormal">
<p class="MsoNormal">* Click on the File and select the New Trace, which creates a new trace to profile.</p>
<p class="MsoNormal"><span style="font-size:12pt;line-height:115%;"><img class="aligncenter size-full wp-image-36" title="profiler-newtrace" src="http://swethadanda.files.wordpress.com/2008/12/profiler-newtrace.jpg?w=450&#038;h=228" alt="profiler-newtrace" width="450" height="228" /></span></p>
<p class="MsoNormal">
<p class="MsoNormal">* Enter the trace name and select any existing template which suits your requirement.</p>
<p class="MsoNormal" style="text-align:center;"><span style="font-size:12pt;line-height:115%;"><img class="aligncenter size-full wp-image-38" title="testtrace1" src="http://swethadanda.files.wordpress.com/2008/12/testtrace1.jpg?w=450&#038;h=289" alt="testtrace1" width="450" height="289" /></span></p>
<p class="MsoNormal">Sql Profiler provides some default templates.They are as follows.</p>
<p class="MsoNormal"><span style="color:#339966;">1) <strong>SP_Counts:</strong> </span>Contains the  events to track how often stored procedures are executed. Its is used to  identify the most commonly used stored procs.</p>
<p class="MsoNormal"><span style="color:#339966;">2) <strong>Standard(Default):</strong></span>Captures an extensive range of events and data. Used  as a start point or for general monitoring purposes.</p>
<p class="MsoNormal"><span style="color:#339966;">3) <strong>SQLProfilerTSQL</strong>:</span>Captures events that relate to Transact SQL (T-SQL). Used to intercept and verify SQL statements for debugging purposes.</p>
<p class="MsoNormal"><span style="color:#339966;">4) <strong>TSQL_Duration:</strong></span> Used to measure  the  execution time  in microseconds of t-sql queries  and stored  procedures.  It  is  very  helpful  to  know  about  long  running  queries.</p>
<p class="MsoNormal"><span style="color:#339966;">5) <strong>TSQL_Grouped:</strong></span> Similar to SQLProfilerStandard, but with information grouped and organized. Use as a start point for general monitoring and troubleshooting.</p>
<p class="MsoNormal"><span style="color:#339966;">6) <strong>TSQL_Replay:</strong></span> It is helpful to capture the events and can be used to replay them.  It can be replayed        on another server also.</p>
<p class="MsoNormal"><span style="color:#339966;">7)<strong> SQLProfilerTSQL_SPs: </strong></span>Provides extensive logging for stored procedures, including queries executed within stored procedures. Use to troubleshoot stored procedures.</p>
<p class="MsoNormal"><strong></strong><span style="color:#339966;"> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> <strong>SQLProfilerTuning:</strong></span> Contains events needed to capture the execution cost and related data. Use to track query costs.</p>
<p class="MsoNormal">* we  also have options to save the results to a file, database table by clicking the check boxes  save to File, Save to DataBase  and provide the path .</p>
<p class="MsoNormal">* Click on Events Selection tab and select the events  which are required for test.</p>
<p class="MsoNormal"><span style="font-size:12pt;line-height:115%;"><img class="aligncenter size-full wp-image-39" title="events-and-columns" src="http://swethadanda.files.wordpress.com/2008/12/events-and-columns.jpg?w=450&#038;h=285" alt="events-and-columns" width="450" height="285" /></span>These are some of the events in the Events selection.</p>
<p><span style="color:#99cc00;">Cursors: </span>Collection of event classes produced by cursor operations.</p>
<p><span style="color:#99cc00;">Database:</span><a href="http://msdn.microsoft.com/en-us/library/aa173886(SQL.80).aspx"> </a>Collection of event classes produced when data or log files grow or shrink utomatically.</p>
<p><span style="color:#99cc00;">Errors and Warnings:</span> Collection of event classes produced when a SQL Server error or warning occurs (for example, an error during the compilation of a stored procedure or an exception in SQL Server).</p>
<p><span style="color:#99cc00;">Locks: </span>Collection of event classes produced when a lock is acquired, cancelled, released, etc.</p>
<p><span style="color:#99cc00;">Objects:</span> Collection of event classes produced when database objects are created, opened, closed, dropped, or deleted.</p>
<p><span style="color:#99cc00;">Performance:</span> Collection of event classes produced when SQL data manipulation (DML) operators execute.</p>
<p><span style="color:#99cc00;">Scans</span>: Collection tables and indexes are scanned.</p>
<p><span style="color:#99cc00;">Security Audit:</span> Collection of event classes used to audit server activity.</p>
<p><span style="color:#99cc00;">Sessions:</span> Collection of event classes produced by clients connecting to and disconnecting from an instance of SQL Server.</p>
<p><span style="color:#99cc00;">Stored Procedures:</span> Collection of event classes produced by the execution of stored procedures.</p>
<p><span style="color:#99cc00;">Transactions:</span> Collection of event classes produced by the execution of Microsoft Distributed Transaction Coordinator (MS DTC) transactions or by writing to the transaction log.</p>
<p><span style="color:#99cc00;">TSQL:</span> Collection of event classes produced by the execution of Transact-SQL statements passed to an instance of SQL Server from the client.</p>
<p><span style="color:#99cc00;">User Configurable:</span> Collection of user-configurable event classes.</p>
<p>* We also have an option to Column Filter the events.</p>
<p><span style="font-size:11pt;line-height:115%;font-family:&quot;">* We can also perform the<span> </span>trace by binding the Application Name or database name to know the performance</span></p>
<p><span style="font-size:11pt;line-height:115%;font-family:&quot;"><img class="aligncenter size-full wp-image-69" title="filter" src="http://swethadanda.files.wordpress.com/2008/12/filter.jpg?w=450&#038;h=285" alt="filter" width="450" height="285" /></span></p>
<p class="MsoNormal">
<p class="MsoNormal">
<p><!--[if gte mso 10]&gt;--></p>
<p class="MsoNormal">* After<span> </span>entering the details and setting the events , filters, Data columns click run button. And start running the application.</p>
<p class="MsoNormal">* Stop the profiler by clicking the stop red icon.</p>
<p class="MsoNormal">* Check the results produced by the Sql profiler according to the specifications.</p>
<p class="MsoNormal"><img class="aligncenter size-full wp-image-42" title="results" src="http://swethadanda.files.wordpress.com/2008/12/results.jpg?w=587&#038;h=285" alt="results" width="587" height="285" /></p>
<p class="MsoNormal"><span style="color:#ff9900;"><strong><span style="font-size:11pt;line-height:115%;font-family:&quot;">Best practices:</span></strong></span></p>
<p class="MsoNormal">
<ul>
<li>Never run SQL Profiler on the database server</li>
<li>Choose events and data columns</li>
<li>Set filters in SQL Profiler</li>
<li>Never trace directly to a table, instead trace to a file (You can query the active trace file using )</li>
<li class="MsoNormal">Filter the results, such as &#8220;Duration &gt; 1000&#8243;.</li>
<li class="MsoNormal">Include only the events that you are interested in, such as SP:Completed and SQL:BatchCompleted</li>
<li>Evaluate query statements captured by SQL Profiler     <a href="http://msdn.microsoft.com/en-us/library/ms979207.aspx"></a><span style="font-size:12pt;font-family:&quot;"> </span></li>
</ul>
<ol type="1">
<p class="MsoNormal" style="line-height:normal;"><span style="color:#ff9900;"><strong><span style="font-size:11pt;line-height:115%;font-family:&quot;"><br />
</span></strong></span></ol>
<p><a href="http://msdn.microsoft.com/en-us/library/aa173918(SQL.80).aspx"><span style="font-size:12pt;font-family:&quot;">http://msdn.microsoft.com/en-us/library/aa173918(SQL.80).aspx </span></a><span style="font-size:11pt;line-height:115%;font-family:&quot;"><a href="http://msdn.microsoft.com/en-us/library/aa173892(SQL.80).aspx"></a></span></p>
<p><span style="font-size:11pt;line-height:115%;font-family:&quot;"><a href="http://msdn.microsoft.com/en-us/library/aa173892(SQL.80).aspx"><span style="font-size:12pt;line-height:115%;font-family:&quot;">http://msdn.microsoft.com/en-us/library/aa173892(SQL.80).aspx</span></a></span></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms979207.aspx"><span style="font-size:12pt;font-family:&quot;">http://msdn.microsoft.com/en-us/library/ms979207.aspx</span></a></p>
<p class="MsoNormal"><span style="font-size:12pt;line-height:115%;"><br />
</span></p>
<p class="MsoNormal"><span style="font-size:12pt;line-height:115%;"><br />
</span></p>
<p class="MsoNormal" style="text-align:center;"><span style="font-size:12pt;line-height:115%;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=33&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2008/12/17/sql-server-profiler/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/sql-profiler.jpg" medium="image">
			<media:title type="html">sql-profiler</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/profiler-newtrace.jpg" medium="image">
			<media:title type="html">profiler-newtrace</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/testtrace1.jpg" medium="image">
			<media:title type="html">testtrace1</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/events-and-columns.jpg" medium="image">
			<media:title type="html">events-and-columns</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/filter.jpg" medium="image">
			<media:title type="html">filter</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/results.jpg" medium="image">
			<media:title type="html">results</media:title>
		</media:content>
	</item>
		<item>
		<title>Two ways to import data from excel to Data Base</title>
		<link>http://swethadanda.wordpress.com/2008/12/11/two-ways-to-import-data-from-excel-to-data-base/</link>
		<comments>http://swethadanda.wordpress.com/2008/12/11/two-ways-to-import-data-from-excel-to-data-base/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 10:12:07 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[How to import data from excel to sql]]></category>

		<guid isPermaLink="false">http://swethadanda.wordpress.com/?p=7</guid>
		<description><![CDATA[1.  Importing Data from excel by using Sql Server import and export Data    wizard   present in Sql. By              2.  By generating scripts in excel and running those in Sql. **Importing Data from excel by using SqlServer import and export Data wizard present in Sql.** Step1: Open Microsoft Sql Server Studio and right click on the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=7&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoListParagraphCxSpFirst" style="text-indent:-.25in;">1.  Importing Data from excel by using Sql Server import and export Data    wizard   present in Sql.</p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;">By              2.  By generating scripts in excel and running those in Sql.</p>
<p class="MsoListParagraphCxSpLast">
<p class="MsoNormal"><span style="font-size:12pt;line-height:115%;color:#00b050;">**Importing Data from excel by using SqlServer import and export Data wizard present in Sql</span><span style="font-size:12pt;line-height:115%;">.<span style="color:#00b050;">**</span></span></p>
<p class="MsoNormal" style="text-align:center;"><span style="color:#ffc000;">Step1:</span> Open Microsoft Sql Server Studio and right click on the DB to which you want to import the data and select import Data in tasks list as shown below.<img class="aligncenter size-medium wp-image-8" title="importdata2" src="http://swethadanda.files.wordpress.com/2008/12/importdata2.jpg?w=300&#038;h=226" alt="importdata2" width="300" height="226" /></p>
<p class="MsoNormal"><span style="color:#ffc000;">Step2:</span> Sql server import and export data wizard appears</p>
<p class="MsoNormal"><img class="aligncenter size-medium wp-image-9" title="importwizard1" src="http://swethadanda.files.wordpress.com/2008/12/importwizard1.jpg?w=300&#038;h=286" alt="importwizard1" width="300" height="286" /></p>
<p class="MsoNormal"><span style="color:#ffc000;">Step3: </span>Select the Data source as Microsoft Excel as we are importing data from Excel and specify the source file path, and the version of excel na dclick next.</p>
<p class="MsoNormal" style="text-align:center;"><img class="aligncenter size-medium wp-image-10" title="choose-data-source1" src="http://swethadanda.files.wordpress.com/2008/12/choose-data-source1.jpg?w=320&#038;h=300" alt="choose-data-source1" width="320" height="300" /></p>
<p class="MsoNormal"><span style="color:#ffc000;">Step4:</span> Choose the destination server, Authentication, Database and click next button.</p>
<p class="MsoNormal"><img class="aligncenter size-medium wp-image-11" title="choose-destination" src="http://swethadanda.files.wordpress.com/2008/12/choose-destination.jpg?w=300&#038;h=285" alt="choose-destination" width="300" height="285" /></p>
<p class="MsoNormal"><span style="color:#ffc000;">Step5: </span></p>
<p class="MsoNormal" style="text-align:center;"><span style="color:#ffc000;"><img class="aligncenter size-medium wp-image-12" title="specify-copy-or-query" src="http://swethadanda.files.wordpress.com/2008/12/specify-copy-or-query.jpg?w=300&#038;h=288" alt="specify-copy-or-query" width="300" height="288" /><br />
</span></p>
<p class="MsoNormal"><span style="color:#ffc000;">Step6: </span>Select the destination table into which the data should be imported and you can also view the preview of the data by clicking the preview button.</p>
<p class="MsoNormal"><img class="aligncenter size-medium wp-image-13" title="sourcetable-and-views" src="http://swethadanda.files.wordpress.com/2008/12/sourcetable-and-views.jpg?w=300&#038;h=287" alt="sourcetable-and-views" width="300" height="287" /></p>
<p class="MsoNormal"><span style="color:#ffc000;">Step7: </span>Select Execute immediately option</p>
<p class="MsoNormal"><img class="aligncenter size-medium wp-image-15" title="save-and-execute1" src="http://swethadanda.files.wordpress.com/2008/12/save-and-execute1.jpg?w=300&#038;h=284" alt="save-and-execute1" width="300" height="284" /><span style="color:#ffc000;">Step8: </span>Click “Finish” button.</p>
<p class="MsoNormal"><img class="aligncenter size-medium wp-image-16" title="complete-wizard" src="http://swethadanda.files.wordpress.com/2008/12/complete-wizard.jpg?w=300&#038;h=288" alt="complete-wizard" width="300" height="288" /></p>
<p class="MsoNormal"><span style="color:#ffc000;">Step9: </span>Finally the execution was successful message appears and that is the last step of importing the data.</p>
<p class="MsoNormal" style="text-align:center;"><img class="aligncenter size-medium wp-image-17" title="successful-execution" src="http://swethadanda.files.wordpress.com/2008/12/successful-execution.jpg?w=300" alt="successful-execution" /></p>
<p class="MsoNormal"><span style="font-size:14pt;line-height:115%;color:#00b050;">**By generating<span> </span>script<span> </span>in<span> </span>excel<span> </span>and<span> </span>running<span> </span>those<span> </span>in<span> </span>Sql.**</span></p>
<p class="MsoNormal" style="margin-left:.25in;">I find it very useful to import data from excel to database</p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="color:#ffc000;">Step1:</span><span> </span>Using<span> </span>this query we can generate the script to import data.</p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="color:#c00000;">=&#8221;insert into table_Name (ColumnName1,ColumnName2) values (&#8216;&#8221;&amp;excelcoordinate1&amp;&#8221;&#8216;,&#8217;&#8221;&amp;excelcoordinate2&amp;&#8221;&#8216;)&#8221;<br />
</span></p>
<p class="MsoNormal" style="margin-left:.25in;">table_Name &#8211;&gt;Name of the table in the database to which we want to import the data.</p>
<p class="MsoNormal" style="margin-left:.25in;">columnName1&#8211;&gt;Column1 Name in the table</p>
<p class="MsoNormal" style="margin-left:.25in;">columnName2&#8211;&gt;Column2 Name in the table</p>
<p class="MsoNormal" style="margin-left:.25in;">excelcoordinate1&#8211;&gt;position of the data which you want to import</p>
<p class="MsoNormal" style="margin-left:.25in;">Note:</p>
<p class="MsoNormal" style="margin-left:.25in;">*always start and end with &amp; and select the box the cordinate will automatically gets populated</p>
<p class="MsoNormal" style="margin-left:.25in;">*If the datatype<span> </span>is a string then always enclose them in single quotes</p>
<p class="MsoNormal" style="margin-left:.25in;text-align:center;"><img class="size-full wp-image-19 aligncenter" title="developing-script1" src="http://swethadanda.files.wordpress.com/2008/12/developing-script1.jpg?w=1107&#038;h=347" alt="developing-script1" width="1107" height="347" /></p>
<p style="text-align:center;"><span><img class="aligncenter size-full wp-image-21" title="query11" src="http://swethadanda.files.wordpress.com/2008/12/query11.jpg?w=1108&#038;h=245" alt="query11" width="1108" height="245" /><br />
</span>A2 implies A-Column name, 2-Rownumber</p>
<p class="MsoNormal" style="margin-left:.25in;">B2 implies B-Column name, 2-Rownumber</p>
<p class="MsoNormal" style="margin-left:.25in;">C2 implies C-Column name, 2-Row number</p>
<p class="MsoNormal" style="margin-left:.25in;text-align:center;"><img class="size-medium wp-image-22 aligncenter" title="drag" src="http://swethadanda.files.wordpress.com/2008/12/drag.jpg?w=300&#038;h=127" alt="drag" width="300" height="127" /></p>
<p class="MsoNormal" style="margin-left:.25in;">write the above query in the excel by selecting the appropriate coordinates in the excel and then select the number of rows for which you want to apply the rule and then click enter.</p>
<p class="MsoNormal" style="margin-left:.25in;"><span style="color:#ffc000;">Step2:</span></p>
<p class="MsoNormal" style="margin-left:.25in;">copy the generated querys from the excel list and then paste them in sql  run those querys in the sql database and you can see that the data gets imported to the data base.</p>
<p class="MsoNormal" style="margin-left:.25in;text-align:center;"><span style="color:#ffc000;"><img class="aligncenter size-medium wp-image-23" title="querys-to-be-run" src="http://swethadanda.files.wordpress.com/2008/12/querys-to-be-run.jpg?w=300" alt="querys-to-be-run" /></span></p>
<p class="MsoNormal" style="margin-left:.25in;">
<p class="MsoNormal" style="margin-left:.25in;"><span style="color:#ffc000;">Hope this posting may be helpful. Please add your comments.<br />
</span></p>
<p class="MsoNormal" style="margin-left:.25in;">
<p class="MsoNormal" style="margin-left:.25in;">
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=7&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2008/12/11/two-ways-to-import-data-from-excel-to-data-base/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/importdata2.jpg?w=300" medium="image">
			<media:title type="html">importdata2</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/importwizard1.jpg?w=300" medium="image">
			<media:title type="html">importwizard1</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/choose-data-source1.jpg?w=300" medium="image">
			<media:title type="html">choose-data-source1</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/choose-destination.jpg?w=300" medium="image">
			<media:title type="html">choose-destination</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/specify-copy-or-query.jpg?w=300" medium="image">
			<media:title type="html">specify-copy-or-query</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/sourcetable-and-views.jpg?w=300" medium="image">
			<media:title type="html">sourcetable-and-views</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/save-and-execute1.jpg?w=300" medium="image">
			<media:title type="html">save-and-execute1</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/complete-wizard.jpg?w=300" medium="image">
			<media:title type="html">complete-wizard</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/successful-execution.jpg?w=300" medium="image">
			<media:title type="html">successful-execution</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/developing-script1.jpg" medium="image">
			<media:title type="html">developing-script1</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/query11.jpg" medium="image">
			<media:title type="html">query11</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/drag.jpg?w=300" medium="image">
			<media:title type="html">drag</media:title>
		</media:content>

		<media:content url="http://swethadanda.files.wordpress.com/2008/12/querys-to-be-run.jpg?w=300" medium="image">
			<media:title type="html">querys-to-be-run</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://swethadanda.wordpress.com/2008/12/11/hello-world/</link>
		<comments>http://swethadanda.wordpress.com/2008/12/11/hello-world/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 07:14:30 +0000</pubDate>
		<dc:creator>swethadanda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=1&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swethadanda.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swethadanda.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swethadanda.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swethadanda.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swethadanda.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swethadanda.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swethadanda.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swethadanda.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swethadanda.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swethadanda.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swethadanda.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swethadanda.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swethadanda.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swethadanda.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swethadanda.wordpress.com&amp;blog=5813188&amp;post=1&amp;subd=swethadanda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swethadanda.wordpress.com/2008/12/11/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc06ca1e80d6443b6db888eaebc3396f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swethadanda</media:title>
		</media:content>
	</item>
	</channel>
</rss>
