<?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>Welcome........</title>
	<atom:link href="http://bimal4u.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bimal4u.wordpress.com</link>
	<description>Bimal Blog</description>
	<lastBuildDate>Tue, 23 Mar 2010 15:47:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bimal4u.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Welcome........</title>
		<link>http://bimal4u.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bimal4u.wordpress.com/osd.xml" title="Welcome........" />
	<atom:link rel='hub' href='http://bimal4u.wordpress.com/?pushpress=hub'/>
		<item>
		<title>All Rows value into comma seprated values into one single variable</title>
		<link>http://bimal4u.wordpress.com/2010/03/23/all-rows-value-into-comma-seprated-values-into-one-single-variable/</link>
		<comments>http://bimal4u.wordpress.com/2010/03/23/all-rows-value-into-comma-seprated-values-into-one-single-variable/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 15:47:14 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Sql server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=93</guid>
		<description><![CDATA[declare @SQLCol nvarchar(max), @TableName nvarchar(max) select @SQLCol = COALESCE(@SQLCol+&#8217;,',&#8221;)+ sc.COLUMN_NAME FROM information_schema.columns sc where sc.COLUMN_NAME like &#8216;%ColumnName%&#8217; and sc.TABLE_NAME = @TableName order by sc.COLUMN_NAME asc Print @SQLCol Note: COALESCE() : This function returns single value of collect all the values with user defined format. Here for each records i used &#8216;,&#8217; but you can use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=93&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>declare  @SQLCol nvarchar(max), @TableName nvarchar(max)<br />
select @SQLCol = COALESCE(@SQLCol+&#8217;,',&#8221;)+ sc.COLUMN_NAME FROM information_schema.columns sc<br />
     where sc.COLUMN_NAME like &#8216;%ColumnName%&#8217; and sc.TABLE_NAME = @TableName<br />
     order by sc.COLUMN_NAME asc</p>
<p>Print  @SQLCol  </p>
<p><strong>Note:</strong><br />
     COALESCE() : This function returns single value of  collect all the values with user defined format. Here for each records i used &#8216;,&#8217; but you can use anything you want for seperation. This is very good function provided by SQL server. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=93&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2010/03/23/all-rows-value-into-comma-seprated-values-into-one-single-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Get All tables rows from database with specific/All columns</title>
		<link>http://bimal4u.wordpress.com/2010/03/23/get-all-tables-rows-from-database-with-specificall-columns/</link>
		<comments>http://bimal4u.wordpress.com/2010/03/23/get-all-tables-rows-from-database-with-specificall-columns/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 15:03:53 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Sql server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=90</guid>
		<description><![CDATA[IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N&#8217;[dbo].[getAllTablesRows]&#8216;) AND type in (N&#8217;P')) DROP procedure [dbo].[getAllTablesRows] Go create procedure getAllTablesRows As Begin DECLARE @TableName sysname , @SQL nvarchar(max), @SQLCol nvarchar(max), @num int IF OBJECT_ID(&#8216;#Temp&#8217;) IS NOT NULL drop table #Temp create TABLE #Temp ( TableName nvarchar(max) NULL DEFAULT(&#8221;), ColumnCount nvarchar(max) NULL DEFAULT(&#8221;), CreatedBY nvarchar(max) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=90&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N&#8217;[dbo].[getAllTablesRows]&#8216;) AND type in (N&#8217;P'))<br />
  DROP procedure [dbo].[getAllTablesRows]<br />
Go  </p>
<p>create procedure getAllTablesRows<br />
As<br />
Begin<br />
DECLARE @TableName sysname ,<br />
		@SQL nvarchar(max),<br />
        @SQLCol nvarchar(max),<br />
        @num int</p>
<p>IF OBJECT_ID(&#8216;#Temp&#8217;) IS NOT NULL<br />
   drop table #Temp </p>
<p>create TABLE #Temp</p>
<p>( TableName nvarchar(max) NULL DEFAULT(&#8221;),<br />
  ColumnCount nvarchar(max) NULL DEFAULT(&#8221;),<br />
  CreatedBY nvarchar(max) NULL DEFAULT(&#8221;),<br />
  CreatedByName nvarchar(max) NULL DEFAULT(&#8221;),<br />
  CreatedOn nvarchar(max) NULL DEFAULT(&#8221;),<br />
  ModifiedBy nvarchar(max) NULL DEFAULT(&#8221;),<br />
  ModifiedOn nvarchar(max) NULL DEFAULT(&#8221;)<br />
)</p>
<p>&#8211;set @SQL = &#8216;insert into #Temp &#8216;<br />
DECLARE tables_cursor CURSOR FAST_FORWARD<br />
FOR<br />
SELECT so.name from<br />
sysobjects so<br />
where so.xtype =&#8217;U&#8217; </p>
<p>order by so.name</p>
<p>OPEN tables_cursor</p>
<p>FETCH NEXT FROM tables_cursor INTO @TableName</p>
<p>WHILE @@FETCH_STATUS = 0<br />
BEGIN</p>
<p>select @num=count(TABLE_NAME) FROM information_schema.columns sc<br />
where sc.COLUMN_NAME like &#8216;%ColumnName%&#8217;  and sc.TABLE_NAME = @TableName<br />
group by TABLE_NAME</p>
<p>IF @num &gt; 0<br />
Begin<br />
  set @SQL = &#8216; SELECT Top 5 &#8221;&#8217; + @TableName + &#8221;&#8217;as TableName, &#8216; + convert (nvarchar(10), @num ) + &#8216; As ColumnCount &#8216;<br />
 set @SQLCol = &#8221;<br />
     select @SQLCol = COALESCE(@SQLCol+&#8217;,',&#8221;)+ sc.COLUMN_NAME FROM information_schema.columns sc<br />
     where sc.COLUMN_NAME like &#8216;%ColumnName%&#8217; and sc.TABLE_NAME = @TableName<br />
     order by sc.COLUMN_NAME asc</p>
<p>  if @num=1<br />
  Begin<br />
    set @SQLCol = @SQLCol + &#8216;,NULL,NULL,NULL,NULL&#8217;<br />
  End<br />
  else if @num=2<br />
  Begin<br />
      set @SQLCol = @SQLCol + &#8216;,NULL,NULL,NULL&#8217;<br />
  End<br />
  else if @num=3<br />
  Begin<br />
    set @SQLCol = @SQLCol + &#8216;,NULL,NULL&#8217;<br />
  End<br />
  else if @num=4<br />
  Begin<br />
  set @SQLCol = @SQLCol + &#8216;,NULL&#8217;<br />
  End</p>
<p>    set @SQL = &#8216;insert into #Temp &#8216;+ @SQL + @SQLCol + &#8216; FROM [' + @TableName + '] &#8216;<br />
  exec @SQL<br />
  set @num=0</p>
<p> End   </p>
<p>  FETCH NEXT FROM tables_cursor INTO @TableName<br />
END</p>
<p>CLOSE tables_cursor<br />
DEALLOCATE tables_cursor</p>
<p>select * from #Temp</p>
<p>End</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=90&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2010/03/23/get-all-tables-rows-from-database-with-specificall-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Give all dependecy related table from the database. Its not included reference key.</title>
		<link>http://bimal4u.wordpress.com/2010/03/23/give-all-dependecy-related-table-from-the-database-its-not-included-reference-key/</link>
		<comments>http://bimal4u.wordpress.com/2010/03/23/give-all-dependecy-related-table-from-the-database-its-not-included-reference-key/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:57:25 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Sql Server 2000]]></category>
		<category><![CDATA[Sql server 2005]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=88</guid>
		<description><![CDATA[SELECT DISTINCT OBJECT_NAME(DEPID) DEPENDENT_ON_OBJECT, OBJECT_NAME (ID) USED_IN_OBJECT FROM SYS.SYSDEPENDS order by OBJECT_NAME(DEPID),OBJECT_NAME (ID)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=88&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SELECT DISTINCT OBJECT_NAME(DEPID) DEPENDENT_ON_OBJECT, OBJECT_NAME (ID) USED_IN_OBJECT FROM SYS.SYSDEPENDS<br />
order by OBJECT_NAME(DEPID),OBJECT_NAME (ID)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=88&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2010/03/23/give-all-dependecy-related-table-from-the-database-its-not-included-reference-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Get All tables infromation from the database</title>
		<link>http://bimal4u.wordpress.com/2010/03/23/get-all-tables-infromation-from-the-database/</link>
		<comments>http://bimal4u.wordpress.com/2010/03/23/get-all-tables-infromation-from-the-database/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:55:57 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=86</guid>
		<description><![CDATA[SELECT * from sysobjects where xtype =&#8217;U&#8217;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=86&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SELECT * from sysobjects where xtype =&#8217;U&#8217; </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=86&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2010/03/23/get-all-tables-infromation-from-the-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Record all table name with specific column and its all information from the database</title>
		<link>http://bimal4u.wordpress.com/2010/03/23/get-record-all-table-name-with-specific-column-and-its-all-information-from-the-database/</link>
		<comments>http://bimal4u.wordpress.com/2010/03/23/get-record-all-table-name-with-specific-column-and-its-all-information-from-the-database/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:52:58 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Sql Server 2000]]></category>
		<category><![CDATA[Sql server 2005]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=83</guid>
		<description><![CDATA[SELECT so.name , column_name &#8216;Column Name&#8217;, data_type &#8216;Data Type&#8217;, CHARacter_maximum_length &#8216;Maximum Length&#8217; FROM information_schema.columns sc inner join sysobjects so on sc.TABLE_NAME = so.name where so.xtype =&#8217;U&#8217; and (sc.COLUMN_NAME like &#8216;%columnName%&#8217;) order by so.name,sc.COLUMN_NAME asc<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=83&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SELECT so.name  ,  column_name &#8216;Column Name&#8217;,<br />
data_type &#8216;Data Type&#8217;,<br />
CHARacter_maximum_length &#8216;Maximum Length&#8217;<br />
FROM information_schema.columns sc<br />
inner join  sysobjects so on sc.TABLE_NAME = so.name<br />
where so.xtype =&#8217;U&#8217; and (sc.COLUMN_NAME like &#8216;%columnName%&#8217;)<br />
order by so.name,sc.COLUMN_NAME asc</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=83&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2010/03/23/get-record-all-table-name-with-specific-column-and-its-all-information-from-the-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Copying records from datatable to datatable</title>
		<link>http://bimal4u.wordpress.com/2009/02/10/copying-records-from-datatable-to-datatable/</link>
		<comments>http://bimal4u.wordpress.com/2009/02/10/copying-records-from-datatable-to-datatable/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 22:16:09 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[.net 1.0]]></category>
		<category><![CDATA[.NET Component]]></category>
		<category><![CDATA[Net 2.0]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=58</guid>
		<description><![CDATA[ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles  Button1.Click dsEmptyDatasetSP.Tables.Add(makeTable1) dsEmptyDatasetSP.Tables.Add(makeTable)  dtOriginalDataTable = dsEmptyDatasetSP.Tables(0).Copy  &#8216;copy into other table   dsEmptyDatasetSP.Tables(0).Merge(dsEmptyDatasetSP.Tables(1).Copy,  True)&#8216;copying one datatable into some specific index table with dataset   End Sub Dim dsEmptyDatasetSP As New DataSet   Dim dtOriginalDataTable As DataTable     Private Function makeTable() As DataTable    Dim result As New DataTable    For i As Integer = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=58&amp;subd=bimal4u&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;"><span style="font-size:x-small;color:#0000ff;">Private </span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Sub</span></span><span style="font-size:x-small;"> Button1_Click(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">ByVal</span></span><span style="font-size:x-small;"> sender </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> System.Object, </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">ByVal</span></span><span style="font-size:x-small;"> e </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> System.EventArgs) </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Handles </span></span><span style="font-size:x-small;"> Button1.Click</span></p>
<p><span style="font-size:x-small;">dsEmptyDatasetSP.Tables.Add(makeTable1)</span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;">dsEmptyDatasetSP.Tables.Add(makeTable)</span></span></p>
<p> <span style="font-size:x-small;"><span style="font-size:x-small;">dtOriginalDataTable = dsEmptyDatasetSP.Tables(0).Copy </span></span><span style="font-size:x-small;"><span style="font-size:x-small;"> </span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">&#8216;copy into other table </span></span></p>
<p><span style="font-size:x-small;"> <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">dsEmptyDatasetSP.Tables(0).Merge(dsEmptyDatasetSP.Tables(1).Copy,<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"> <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"> <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">True</span></span><span style="font-size:x-small;">)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-size:x-small;"><span style="color:#008000;">&#8216;copying one datatable into some specific index table with dataset </span> </span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">End</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Sub</span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim</span></span><span style="font-size:x-small;"> dsEmptyDatasetSP </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">New </span></span><span style="font-size:x-small;">DataSet <span style="font-size:x-small;"> </span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim</span></span><span style="font-size:x-small;"> dtOriginalDataTable </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As </span></span><span style="font-size:x-small;">DataTable <span style="font-size:x-small;"> </span></span> </p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;"> </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Private</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Function</span></span><span style="font-size:x-small;"> makeTable() </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As </span></span><span style="font-size:x-small;">DataTable <span style="font-size:x-small;"> </span></span></p>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim</span></span><span style="font-size:x-small;"> result </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">New </span></span><span style="font-size:x-small;">DataTable <span style="font-size:x-small;"> </span></span></p>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">For</span></span><span style="font-size:x-small;"> i </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Integer</span></span><span style="font-size:x-small;"> = 0 </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">To </span></span><span style="font-size:x-small;">1 <span style="font-size:x-small;"> </span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim</span></span><span style="font-size:x-small;"> dc </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">New </span></span><span style="font-size:x-small;">DataColumn </span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;">dc.ColumnName =</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;Col&#8221;</span></span><span style="font-size:x-small;">&amp; i.ToString</span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;">dc.DataType =</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">GetType</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Integer</span></span><span style="font-size:x-small;">)</span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Next</span></span></p>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">For</span></span><span style="font-size:x-small;"> i </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Integer</span></span><span style="font-size:x-small;"> = 0 </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">To </span></span><span style="font-size:x-small;">5 <span style="font-size:x-small;"> </span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim</span></span><span style="font-size:x-small;"> dr </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As </span></span><span style="font-size:x-small;">DataRow = result.NewRow</span></p>
<div><span style="font-size:x-small;">dr(0) = i</span></div>
<div><span style="font-size:x-small;">result.Rows.Add(dr)</span> </div>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Next</span></span> </p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Return  </span></span><span style="font-size:x-small;">result <span style="font-size:x-small;"> </span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">End</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Function</span></span></p>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Private</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Function</span></span><span style="font-size:x-small;"> makeTable1() </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> DataTable</span></span></span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"> </span></span></div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;">result </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">New</span></span><span style="font-size:x-small;"> DataTable</span></span></span> </span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">For</span></span><span style="font-size:x-small;"> i </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Integer</span></span><span style="font-size:x-small;"> = 0 </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">To </span></span><span style="font-size:x-small;">1 <span style="font-size:x-small;"> </span></span> </div>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim</span></span><span style="font-size:x-small;"> dc </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">New </span></span><span style="font-size:x-small;">DataColumn </span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;">dc.ColumnName =</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;Col&#8221;</span></span><span style="font-size:x-small;">&amp; i.ToString</span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;">dc.DataType =</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">GetType</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Integer</span></span><span style="font-size:x-small;">)</span></p>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Next</span></span></p>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">For</span></span><span style="font-size:x-small;"> i </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Integer</span></span><span style="font-size:x-small;"> = 5 </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">To </span></span><span style="font-size:x-small;">10 <span style="font-size:x-small;"> </span></span></p>
<p> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Dim</span></span><span style="font-size:x-small;"> dr </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">As </span></span><span style="font-size:x-small;">DataRow = result.NewRow</span></p>
<p><span style="font-size:x-small;">dr(0) = i</span></p>
<div><span style="font-size:x-small;">result.Rows.Add(dr)</span></div>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Next</span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Return </span></span><span style="font-size:x-small;">result <span style="font-size:x-small;"> </span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">End</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Function</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=58&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2009/02/10/copying-records-from-datatable-to-datatable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>How to work with XML In SQL Server 2005</title>
		<link>http://bimal4u.wordpress.com/2009/01/30/how-to-work-with-xml-in-sql-server-2005/</link>
		<comments>http://bimal4u.wordpress.com/2009/01/30/how-to-work-with-xml-in-sql-server-2005/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 16:25:23 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Sql server 2005]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=54</guid>
		<description><![CDATA[ DECLARE @DSID  NVarchar(50),@XMLPath Nvarchar(100),@RoldId int,@Debug varchar(max)  set @Debug=&#8216;&#60;Roles&#62;&#60;Role code=&#8221;111&#8243; name=&#8221;RoleName&#8221;&#62;&#60;Persons&#62;&#60;Person FName=&#8221;FName&#8221; LName=&#8221;LName&#8221; DSID=&#8221;564&#8243; Email=&#8221;P@email.com&#8221; /&#62;&#60;Person FName=&#8221;1FName&#8221; LName=&#8221;1LName&#8221; DSID=&#8221;1234&#8243; Email=&#8221;P1@email.com&#8221; /&#62;&#60;/Persons&#62;&#60;/Role&#62;&#60;/Roles&#62;&#8217; set @RoldId = 111  if  ( (convert(XML,@Debug)).exist(&#8216;(/Roles/Role[@code= sql:variable("@RoldId")])&#8217;) =1 )  Begin  SELECT @DSID=(convert(XML,@Debug)).value(&#8216;(/Roles/Role[@code= sql:variable("@RoldId")]/Persons/Person/@DSID)[1]&#8216;,&#8216;nvarchar(50)&#8217;)  print @DSID   select * from  [Partner]  where [ID]=@DSID  End<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=54&amp;subd=bimal4u&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;"><span style="font-size:x-small;color:#0000ff;">DECLARE </span></span></span><span style="font-size:x-small;">@DSID  </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">NVarchar</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;">50</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">),</span></span><span style="font-size:x-small;"><span style="font-size:x-small;">@XMLPath </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Nvarchar</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;">100</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">),</span></span><span style="font-size:x-small;"><span style="font-size:x-small;">@RoldId </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">int,</span></span><span style="font-size:x-small;">@Debug </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">varchar</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;color:#ff00ff;"><span style="font-size:x-small;color:#ff00ff;">max</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">)</span></span> </p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">set </span></span></span><span style="font-size:x-small;">@Debug</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">=</span></span><span style="font-size:x-small;color:#ff0000;"><span style="font-size:x-small;color:#ff0000;">&#8216;&lt;Roles&gt;&lt;Role code=&#8221;111&#8243; name=&#8221;RoleName&#8221;&gt;&lt;Persons&gt;&lt;Person FName=&#8221;FName&#8221; LName=&#8221;LName&#8221; DSID=&#8221;564&#8243; Email=&#8221;P@email.com&#8221; /&gt;&lt;Person FName=&#8221;1FName&#8221; LName=&#8221;1LName&#8221; DSID=&#8221;1234&#8243; Email=&#8221;P1@email.com&#8221; /&gt;&lt;/Persons&gt;&lt;/Role&gt;&lt;/Roles&gt;&#8217;</span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">set </span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;">@RoldId </span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">=</span></span><span style="font-size:x-small;"> 111</span></span></span> </p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">if  </span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;color:#ff00ff;"><span style="font-size:x-small;color:#ff00ff;">convert</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">XML</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">,</span></span><span style="font-size:x-small;">@Debug</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">)).</span></span><span style="font-size:x-small;">exist</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;color:#ff0000;"><span style="font-size:x-small;color:#ff0000;">&#8216;(/Roles/Role[@code= sql:variable("@RoldId")])&#8217;</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">)</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">=</span></span><span style="font-size:x-small;">1 </span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">)</span></span></span></span> </p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">Begin</span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"></span> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">SELECT </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;">@DSID</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">=(</span></span><span style="font-size:x-small;color:#ff00ff;"><span style="font-size:x-small;color:#ff00ff;">convert</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">XML</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">,</span></span><span style="font-size:x-small;">@Debug</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">)).</span></span><span style="font-size:x-small;">value</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">(</span></span><span style="font-size:x-small;color:#ff0000;"><span style="font-size:x-small;color:#ff0000;">&#8216;(/Roles/Role[@code= sql:variable("@RoldId")]/Persons/Person/@DSID)[1]&#8216;</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">,</span></span><span style="font-size:x-small;color:#ff0000;"><span style="font-size:x-small;color:#ff0000;">&#8216;nvarchar(50)&#8217;</span></span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">)</span></span></span></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#808080;"></span></span></span> <span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">print </span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;">@DSID<span style="font-size:x-small;"> </span></span> </span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">select</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">*</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">from </span></span> <span style="font-size:x-small;">[Partner]<span style="font-size:x-small;">  </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">where</span></span><span style="font-size:x-small;"> [ID]</span><span style="font-size:x-small;color:#808080;"><span style="font-size:x-small;color:#808080;">=</span></span><span style="font-size:x-small;">@DSID</span></p>
<p><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">End</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=54&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2009/01/30/how-to-work-with-xml-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>browser type in server-side code without the BrowserType object in ASP.NET</title>
		<link>http://bimal4u.wordpress.com/2008/04/16/browser-type-in-server-side-code-without-the-browsertype-object-in-aspnet/</link>
		<comments>http://bimal4u.wordpress.com/2008/04/16/browser-type-in-server-side-code-without-the-browsertype-object-in-aspnet/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 19:44:54 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Net 2.0]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=53</guid>
		<description><![CDATA[For more information click on this link http://support.microsoft.com/default.aspx?scid=KB;EN-US;q306576<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=53&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For more information click on this link</p>
<p><a href="http://support.microsoft.com/default.aspx?scid=KB;EN-US;q306576">http://support.microsoft.com/default.aspx?scid=KB;EN-US;q306576</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bimal4u.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bimal4u.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=53&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2008/04/16/browser-type-in-server-side-code-without-the-browsertype-object-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Browser Detection Using ASP.NET</title>
		<link>http://bimal4u.wordpress.com/2008/04/16/browser-detection-using-aspnet/</link>
		<comments>http://bimal4u.wordpress.com/2008/04/16/browser-detection-using-aspnet/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 19:42:37 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Net 2.0]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=52</guid>
		<description><![CDATA[Please click on below link http://aspnet.4guysfromrolla.com/articles/120402-1.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=52&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Please click on below link</p>
<p><a href="http://aspnet.4guysfromrolla.com/articles/120402-1.aspx">http://aspnet.4guysfromrolla.com/articles/120402-1.aspx</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bimal4u.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bimal4u.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=52&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2008/04/16/browser-detection-using-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
		<item>
		<title>Client-Side Message Boxes in your ASP.NET</title>
		<link>http://bimal4u.wordpress.com/2008/04/16/client-side-message-boxes-in-your-aspnet/</link>
		<comments>http://bimal4u.wordpress.com/2008/04/16/client-side-message-boxes-in-your-aspnet/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 19:39:33 +0000</pubDate>
		<dc:creator>bimal4u</dc:creator>
				<category><![CDATA[Net 2.0]]></category>

		<guid isPermaLink="false">http://bimal4u.wordpress.com/?p=51</guid>
		<description><![CDATA[Please click on this link http://aspnet.4guysfromrolla.com/articles/021104-1.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=51&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Please click on this link</p>
<p><a href="http://aspnet.4guysfromrolla.com/articles/021104-1.aspx">http://aspnet.4guysfromrolla.com/articles/021104-1.aspx</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bimal4u.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bimal4u.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bimal4u.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bimal4u.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bimal4u.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bimal4u.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bimal4u.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bimal4u.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bimal4u.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bimal4u.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bimal4u.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bimal4u.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bimal4u.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bimal4u.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bimal4u.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bimal4u.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bimal4u.wordpress.com&amp;blog=906458&amp;post=51&amp;subd=bimal4u&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bimal4u.wordpress.com/2008/04/16/client-side-message-boxes-in-your-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b72d0b6993924a2428d7f7abd93166e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bimal4u</media:title>
		</media:content>
	</item>
	</channel>
</rss>
