<?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>Dotnetraja's Weblog &#187; Database</title>
	<atom:link href="http://dotnetraja.wordpress.com/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetraja.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 29 Oct 2009 11:25:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dotnetraja.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4ba1bff7a8d3dcdd355f1044aa421165?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dotnetraja's Weblog &#187; Database</title>
		<link>http://dotnetraja.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnetraja.wordpress.com/osd.xml" title="Dotnetraja&#8217;s Weblog" />
		<item>
		<title>Sql server date time functionality</title>
		<link>http://dotnetraja.wordpress.com/2008/08/20/sql-server-date-time-functionality/</link>
		<comments>http://dotnetraja.wordpress.com/2008/08/20/sql-server-date-time-functionality/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 14:32:10 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/?p=10</guid>
		<description><![CDATA[Select * from users where convert(char,createddate,101)=&#8217;07/29/2008&#8242;
select cast(getdate() as char)
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=10&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Select * from users where convert(char,createddate,101)=&#8217;07/29/2008&#8242;</p>
<p>select cast(getdate() as char)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetraja.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetraja.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=10&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2008/08/20/sql-server-date-time-functionality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Resetting the table identity values</title>
		<link>http://dotnetraja.wordpress.com/2008/08/20/resetting-the-table-identity-values/</link>
		<comments>http://dotnetraja.wordpress.com/2008/08/20/resetting-the-table-identity-values/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 14:31:50 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/?p=9</guid>
		<description><![CDATA[To reset the identity value in database table 
 
Syntax: DBCC checkident (tablename, reseed, 0)
 
DBCC checkident can reseed the value of the table. For e.g.: our table has 25 records with 25 as last identity. If we want next record to have identity has 35 we need to run following T-SQL 
 
DBCC checkidetnt (tablename, reseed, 34)
 
Disadvantage: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=9&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal" style="margin:0;"><span style="font-family:Times New Roman;">To reset the identity value in database table </span></p>
<p><span style="font-family:Times New Roman;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:Times New Roman;">Syntax: DBCC checkident (tablename, reseed, 0)</span></p>
<p><span style="font-family:Times New Roman;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:Times New Roman;">DBCC checkident can reseed the value of the table. For e.g.: our table has 25 records with 25 as last identity. If we want next record to have identity has 35 we need to run following T-SQL </span></p>
<p><span style="font-family:Times New Roman;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:Times New Roman;">DBCC checkidetnt (tablename, reseed, 34)</span></p>
<p><span style="font-family:Times New Roman;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:Times New Roman;">Disadvantage: It will violate the uniqueness.</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetraja.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetraja.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=9&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2008/08/20/resetting-the-table-identity-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Copying one table values into another table.</title>
		<link>http://dotnetraja.wordpress.com/2008/08/20/copying-one-table-values-into-another-table/</link>
		<comments>http://dotnetraja.wordpress.com/2008/08/20/copying-one-table-values-into-another-table/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 14:31:28 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/?p=26</guid>
		<description><![CDATA[INSERT INTO TestTable (FirstName, LastName)
SELECT FirstName, LastName
FROM Person.Contact
WHERE EmailPromotion = 2
&#8211;Verify that Data in TestTable
SELECT FirstName, LastName
FROM TestTable
IF it is in different database.
INSERT INTO SmithNephewStoreFront.dbo.category ( [Name],parentcategoryID)
SELECT  category,subcatid
FROM endo.dbo.category
WHERE catid = 2
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=26&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>INSERT INTO TestTable (FirstName, LastName)<br />
SELECT FirstName, LastName<br />
FROM Person.Contact<br />
WHERE EmailPromotion = 2<br />
&#8211;Verify that Data in TestTable<br />
SELECT FirstName, LastName<br />
FROM TestTable</p>
<p>IF it is in different database.<br />
INSERT INTO SmithNephewStoreFront.dbo.category ( [Name],parentcategoryID)<br />
SELECT  category,subcatid<br />
FROM endo.dbo.category<br />
WHERE catid = 2</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetraja.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetraja.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=26&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2008/08/20/copying-one-table-values-into-another-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
		<item>
		<title>resetting the identity column in the database table .</title>
		<link>http://dotnetraja.wordpress.com/2008/08/20/resetting-the-identity-column-in-the-database-table/</link>
		<comments>http://dotnetraja.wordpress.com/2008/08/20/resetting-the-identity-column-in-the-database-table/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 14:28:37 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/?p=27</guid>
		<description><![CDATA[ 
DBCC CHECKIDENT (category, RESEED, 0)
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=27&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> </p>
<p>DBCC CHECKIDENT (category, RESEED, 0)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetraja.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetraja.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=27&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2008/08/20/resetting-the-identity-column-in-the-database-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
	</channel>
</rss>