<?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/"
	>

<channel>
	<title>Fundamental Provocation &#187; SQL</title>
	<atom:link href="http://www.ajaymatharu.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajaymatharu.com</link>
	<description>Blog by Ajay Matharu</description>
	<lastBuildDate>Tue, 31 Aug 2010 18:46:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Insert data from XML in SQL</title>
		<link>http://www.ajaymatharu.com/insert-data-from-xml-in-sql/</link>
		<comments>http://www.ajaymatharu.com/insert-data-from-xml-in-sql/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 04:56:37 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Insert xml in sql]]></category>
		<category><![CDATA[Multiple Records]]></category>
		<category><![CDATA[OpenXML]]></category>
		<category><![CDATA[SQL with XML]]></category>
		<category><![CDATA[xml format]]></category>
		<category><![CDATA[XML in SQL]]></category>
		<category><![CDATA[XML with SQL]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=2188</guid>
		<description><![CDATA[Its been very long since I have written any technical post. So here I am, with small example of how to insert data from XML into SQL. This is extremely helpful if you want to insert multiple records in one go into SQL, you just need to create the XML and pass it to SQL. [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/insert-data-from-xml-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TSQL Cast Vs Convert</title>
		<link>http://www.ajaymatharu.com/tsql-cast-vs-convert/</link>
		<comments>http://www.ajaymatharu.com/tsql-cast-vs-convert/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 05:02:43 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Cast]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[Convert Vs Cast]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://ajaymatharu.wordpress.com/?p=663</guid>
		<description><![CDATA[SQL Server programmers can choose between two functions in SQL Server 7 and 2000 for converting expressions from one type to another. In many cases there will be a need within a stored procedure or other routine to convert data from, say, a datetime type to a varchar type; CONVERT and CAST are used for [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/tsql-cast-vs-convert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert multiple records with single Insert statement in SQL</title>
		<link>http://www.ajaymatharu.com/insert-multiple-records-with-single-insert-statement-in-sql/</link>
		<comments>http://www.ajaymatharu.com/insert-multiple-records-with-single-insert-statement-in-sql/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 04:31:26 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Insert]]></category>
		<category><![CDATA[Microsoft SQL]]></category>
		<category><![CDATA[Multiple Inserts]]></category>
		<category><![CDATA[Multiple Records]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[Select]]></category>
		<category><![CDATA[SQL Insert]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[TSQL Query]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=1175</guid>
		<description><![CDATA[This is the traditional method for inserting multiple values in a table. USE YourDBName GO INSERT INTO MyTableName (FirstCol, SecondCol) VALUES (‘First’,1); INSERT INTO MyTableName (FirstCol, SecondCol) VALUES (‘Second’,2); INSERT INTO MyTableName (FirstCol, SecondCol) VALUES (‘Third’,3); INSERT INTO MyTableName (FirstCol, SecondCol) VALUES (‘Fourth’,4); INSERT INTO MyTableName (FirstCol, SecondCol) VALUES (‘Fifth’,5); GO However this cannot be [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/insert-multiple-records-with-single-insert-statement-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding a column in database</title>
		<link>http://www.ajaymatharu.com/finding-a-column-in-database/</link>
		<comments>http://www.ajaymatharu.com/finding-a-column-in-database/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 06:03:32 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[System Query]]></category>
		<category><![CDATA[System Table]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=1374</guid>
		<description><![CDATA[Here is the query that will help you to find a particular column in the database. This query will return you the table name in which that column is found. select so.name, sc.name from syscolumns sc inner join sysobjects so on sc.id = so.id where sc.name = 'SystemColumn' Related Posts:Rename SQL columnCast Vs Convert in [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/finding-a-column-in-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Scripter Add-in for SQL</title>
		<link>http://www.ajaymatharu.com/data-scripter-add-in-for-sql/</link>
		<comments>http://www.ajaymatharu.com/data-scripter-add-in-for-sql/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 03:34:43 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[data scripter]]></category>
		<category><![CDATA[sql script]]></category>
		<category><![CDATA[table data scripter]]></category>

		<guid isPermaLink="false">http://ajaymatharu.wordpress.com/?p=364</guid>
		<description><![CDATA[Many a times you feel the need to script databases, tables, stored procedures etc. But you already have these utilities that help you to script these database objects. There is no script generator for the data present in the table. For e.g. you want to move data from one server to another, to accomplish this you have the script [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/data-scripter-add-in-for-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query to list all tables and columns in database</title>
		<link>http://www.ajaymatharu.com/query-to-list-all-tables-and-columns-in-database/</link>
		<comments>http://www.ajaymatharu.com/query-to-list-all-tables-and-columns-in-database/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 04:30:41 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[System Tables]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=1371</guid>
		<description><![CDATA[Here is the SQL query that will help you list all the tables and columns along with its data type and length in a particular database. This query fires query to the system table that stores all the information about the database. select table_name, column_name, data_type, character_maximum_length, is_nullable from information_schema.columns where table_name in (select name [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/query-to-list-all-tables-and-columns-in-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cast Vs Convert in SQL</title>
		<link>http://www.ajaymatharu.com/cast-vs-convert-in-sql/</link>
		<comments>http://www.ajaymatharu.com/cast-vs-convert-in-sql/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:24:17 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Cast]]></category>
		<category><![CDATA[Cast Vs Convert]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQl Datatype]]></category>
		<category><![CDATA[SQL Query]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=1376</guid>
		<description><![CDATA[Because SQL Server provides both functions, there may be some confusion about which is best to use and under what circumstances. CONVERT is specific to SQL Server, and allows for a greater breadth of flexibility when converting between date and time values, fractional numbers, and monetary signifier. CAST is the more ANSI-standard of the two [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/cast-vs-convert-in-sql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Find out Nth highest value in SQL</title>
		<link>http://www.ajaymatharu.com/find-out-nth-highest-value-in-sql/</link>
		<comments>http://www.ajaymatharu.com/find-out-nth-highest-value-in-sql/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 07:51:52 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Nth highest]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[SQL 2005]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=1367</guid>
		<description><![CDATA[Since I am looking for a job change and this is the question I&#8217;m being asked in all of my interviews, I am sharing this with everyone hoping this will help you guys. The most common type of question is find out the 5th highest value, find out the 2nd highest value, and so on. [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/find-out-nth-highest-value-in-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rename SQL column</title>
		<link>http://www.ajaymatharu.com/rename-sql-column/</link>
		<comments>http://www.ajaymatharu.com/rename-sql-column/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 04:06:20 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[EXEC]]></category>
		<category><![CDATA[rename]]></category>
		<category><![CDATA[rename column]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=973</guid>
		<description><![CDATA[Here is the script to rename an SQL column, EXEC sp_rename @objname = 'table_name.old_column_name', @newname = 'new_column_name', @objtype = 'COLUMN' Related Posts:Finding a column in databaseGodMode in Windows 7Using IF UPDATE() in SQL TriggerCast Vs Convert in SQLGoogle Eye-Tracking]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/rename-sql-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using case conditions in SQL</title>
		<link>http://www.ajaymatharu.com/using-case-conditions-in-sql/</link>
		<comments>http://www.ajaymatharu.com/using-case-conditions-in-sql/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 04:28:43 +0000</pubDate>
		<dc:creator>Ajay Matharu</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Case]]></category>
		<category><![CDATA[Select]]></category>

		<guid isPermaLink="false">http://www.ajaymatharu.com/?p=1115</guid>
		<description><![CDATA[This is how you can user select case in sql statements, USE AdventureWorks; GO SELECT ProductNumber, Category = CASE ProductLine WHEN 'R' THEN 'Road' WHEN 'M' THEN 'Mountain' WHEN 'T' THEN 'Touring' WHEN 'S' THEN 'Other sale items' ELSE 'Not for sale' END, Name FROM Production.Product ORDER BY ProductNumber; GO USE AdventureWorks; GO SELECT ProductNumber, [...]]]></description>
		<wfw:commentRss>http://www.ajaymatharu.com/using-case-conditions-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.193 seconds -->
