<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: SQL SERVER &#8211; Introduction to Basics of a Query Hint &#8211; A Primer</title>
	<atom:link href="http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Thu, 20 Jun 2013 09:56:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #026 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-464709</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #026 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 27 Apr 2013 01:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-464709</guid>
		<description><![CDATA[[...] Introduction to Basics of a Query Hint – A Primer [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Introduction to Basics of a Query Hint – A Primer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maha</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-336043</link>
		<dc:creator><![CDATA[Maha]]></dc:creator>
		<pubDate>Thu, 23 Aug 2012 05:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-336043</guid>
		<description><![CDATA[Hi ,
I am trying to get xml from a location into a table using rowset, the following is the query, but n but its not accepting as valid fiile name. Please help me
CREATE TABLE #XmlImportTest(
xmlFileName VARCHAR(300) NOT NULL,
xml_data XML NOT NULL
)
GO
declare @directory varchar(256) set @directory = ‘”D:\To Folder”‘

declare @filecount int, @fileindex int, @linecount int, @lineindex int
declare @filename varchar(255), @arg varchar(512), @contents varchar(8000)
set @filename = ‘D:\To Folder’
set @arg = ‘dir ‘ + @directory + ‘\ /A-D /B’
declare @dir table (id int not null identity(1,1),[filename] varchar(512))
insert @dir exec master.dbo.xp_cmdshell @arg
DECLARE @ID int
DECLARE IDs CURSOR LOCAL FOR select id from @dir
OPEN IDs
FETCH NEXT FROM IDs into @ID
WHILE @@FETCH_STATUS = 0
BEGIN
SET @filename = @filename + ‘\’+ (select filename from @dir where id = @ID)

print @filename
declare @files table ([xmlFileName] varchar(512), [xml_data] xml null)

INSERT INTO @files(xmlFileName, xml_data)

SELECT ”’ + @filename + ”’, xmlData
FROM(
SELECT *
FROM OPENROWSET (BULK ”’ + @filename +”’, SINGLE_BLOB) AS XMLDATA
) AS FileImport (XMLDATA)

FETCH NEXT FROM IDs into @ID
END
CLOSE IDs
DEALLOCATE IDs]]></description>
		<content:encoded><![CDATA[<p>Hi ,<br />
I am trying to get xml from a location into a table using rowset, the following is the query, but n but its not accepting as valid fiile name. Please help me<br />
CREATE TABLE #XmlImportTest(<br />
xmlFileName VARCHAR(300) NOT NULL,<br />
xml_data XML NOT NULL<br />
)<br />
GO<br />
declare @directory varchar(256) set @directory = ‘”D:\To Folder”‘</p>
<p>declare @filecount int, @fileindex int, @linecount int, @lineindex int<br />
declare @filename varchar(255), @arg varchar(512), @contents varchar(8000)<br />
set @filename = ‘D:\To Folder’<br />
set @arg = ‘dir ‘ + @directory + ‘\ /A-D /B’<br />
declare @dir table (id int not null identity(1,1),[filename] varchar(512))<br />
insert @dir exec master.dbo.xp_cmdshell @arg<br />
DECLARE @ID int<br />
DECLARE IDs CURSOR LOCAL FOR select id from @dir<br />
OPEN IDs<br />
FETCH NEXT FROM IDs into @ID<br />
WHILE @@FETCH_STATUS = 0<br />
BEGIN<br />
SET @filename = @filename + ‘\’+ (select filename from @dir where id = @ID)</p>
<p>print @filename<br />
declare @files table ([xmlFileName] varchar(512), [xml_data] xml null)</p>
<p>INSERT INTO @files(xmlFileName, xml_data)</p>
<p>SELECT ”’ + @filename + ”’, xmlData<br />
FROM(<br />
SELECT *<br />
FROM OPENROWSET (BULK ”’ + @filename +”’, SINGLE_BLOB) AS XMLDATA<br />
) AS FileImport (XMLDATA)</p>
<p>FETCH NEXT FROM IDs into @ID<br />
END<br />
CLOSE IDs<br />
DEALLOCATE IDs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maha</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-336040</link>
		<dc:creator><![CDATA[Maha]]></dc:creator>
		<pubDate>Thu, 23 Aug 2012 05:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-336040</guid>
		<description><![CDATA[Hi ,
 I am trying to get xml from a location into a table using rowset, the following is the query, but n but its not accepting as valid fiile name. Please help me
CREATE TABLE #XmlImportTest(
xmlFileName VARCHAR(300) NOT NULL,
xml_data XML NOT NULL
)
GO
declare @directory varchar(256) set @directory = &#039;&quot;D:\To Folder&quot;&#039;

declare @filecount int, @fileindex int, @linecount int, @lineindex int
declare @filename varchar(255), @arg varchar(512), @contents varchar(8000)
set @filename = &#039;D:\To Folder&#039;
set @arg = &#039;dir &#039; + @directory + &#039;\ /A-D  /B&#039;
declare @dir table (id int not null identity(1,1),[filename] varchar(512))
insert @dir exec master.dbo.xp_cmdshell @arg
DECLARE @ID int
DECLARE IDs CURSOR LOCAL FOR select id from @dir 
 OPEN IDs
FETCH NEXT FROM IDs into @ID
WHILE @@FETCH_STATUS = 0
BEGIN
    SET @filename = @filename + &#039;\&#039;+ (select filename from @dir where id = @ID)
    
     print @filename
    declare @files table ([xmlFileName] varchar(512), [xml_data] xml null)
   
   INSERT INTO @files(xmlFileName, xml_data)

		SELECT &#039;&#039;&#039; + @filename + &#039;&#039;&#039;, xmlData
		FROM(
		SELECT *
		FROM OPENROWSET (BULK &#039;&#039;&#039; + @filename +&#039;&#039;&#039;, SINGLE_BLOB) AS XMLDATA
		) AS FileImport (XMLDATA)
	

    FETCH NEXT FROM IDs into @ID
END
CLOSE IDs
DEALLOCATE IDs]]></description>
		<content:encoded><![CDATA[<p>Hi ,<br />
 I am trying to get xml from a location into a table using rowset, the following is the query, but n but its not accepting as valid fiile name. Please help me<br />
CREATE TABLE #XmlImportTest(<br />
xmlFileName VARCHAR(300) NOT NULL,<br />
xml_data XML NOT NULL<br />
)<br />
GO<br />
declare @directory varchar(256) set @directory = &#8216;&#8221;D:\To Folder&#8221;&#8216;</p>
<p>declare @filecount int, @fileindex int, @linecount int, @lineindex int<br />
declare @filename varchar(255), @arg varchar(512), @contents varchar(8000)<br />
set @filename = &#8216;D:\To Folder&#8217;<br />
set @arg = &#8216;dir &#8216; + @directory + &#8216;\ /A-D  /B&#8217;<br />
declare @dir table (id int not null identity(1,1),[filename] varchar(512))<br />
insert @dir exec master.dbo.xp_cmdshell @arg<br />
DECLARE @ID int<br />
DECLARE IDs CURSOR LOCAL FOR select id from @dir<br />
 OPEN IDs<br />
FETCH NEXT FROM IDs into @ID<br />
WHILE @@FETCH_STATUS = 0<br />
BEGIN<br />
    SET @filename = @filename + &#8216;\&#8217;+ (select filename from @dir where id = @ID)</p>
<p>     print @filename<br />
    declare @files table ([xmlFileName] varchar(512), [xml_data] xml null)</p>
<p>   INSERT INTO @files(xmlFileName, xml_data)</p>
<p>		SELECT &#8221;&#8217; + @filename + &#8221;&#8217;, xmlData<br />
		FROM(<br />
		SELECT *<br />
		FROM OPENROWSET (BULK &#8221;&#8217; + @filename +&#8221;&#8217;, SINGLE_BLOB) AS XMLDATA<br />
		) AS FileImport (XMLDATA)</p>
<p>    FETCH NEXT FROM IDs into @ID<br />
END<br />
CLOSE IDs<br />
DEALLOCATE IDs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; 5 Videos from Joes 2 Pros Series Exam Prep Series 70-433 &#8211; SQL in Sixty Seconds &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-322727</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; 5 Videos from Joes 2 Pros Series Exam Prep Series 70-433 &#8211; SQL in Sixty Seconds &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 01 Aug 2012 01:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-322727</guid>
		<description><![CDATA[[...] Query hints specify that the indicated hints should be used throughout the query. Query hints affect all operators in the statement and are implemented using the OPTION clause. Cautionary Note: Because the SQL Server Query Optimizer typically selects the best execution plan for a query, it is highly recommended that hints be used as a last resort for experienced developers and database administrators to achieve the desired results. [Detailed Blog Post] [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Query hints specify that the indicated hints should be used throughout the query. Query hints affect all operators in the statement and are implemented using the OPTION clause. Cautionary Note: Because the SQL Server Query Optimizer typically selects the best execution plan for a query, it is highly recommended that hints be used as a last resort for experienced developers and database administrators to achieve the desired results. [Detailed Blog Post] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; SQL in Sixty Seconds &#8211; 5 Videos from Joes 2 Pros Series &#8211; SQL Exam Prep Series 70-433 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-284953</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; SQL in Sixty Seconds &#8211; 5 Videos from Joes 2 Pros Series &#8211; SQL Exam Prep Series 70-433 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 16 May 2012 01:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-284953</guid>
		<description><![CDATA[[...] [Detailed Blog Post] &#124; [Quiz with Answer] [...]]]></description>
		<content:encoded><![CDATA[<p>[...] [Detailed Blog Post] | [Quiz with Answer] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Quiz and Video &#8211; Introduction to Basics of a Query Hint &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-283078</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Quiz and Video &#8211; Introduction to Basics of a Query Hint &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 09 May 2012 01:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-283078</guid>
		<description><![CDATA[[...] is follow up blog post of my earlier blog post on the same subject - SQL SERVER – Introduction to Basics of a Query Hint – A Primer. In the article we discussed various basics terminology of the query hints. The article further [...]]]></description>
		<content:encoded><![CDATA[<p>[...] is follow up blog post of my earlier blog post on the same subject - SQL SERVER – Introduction to Basics of a Query Hint – A Primer. In the article we discussed various basics terminology of the query hints. The article further [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-279462</link>
		<dc:creator><![CDATA[Suresh]]></dc:creator>
		<pubDate>Wed, 25 Apr 2012 11:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-279462</guid>
		<description><![CDATA[Hi Pinal,
   I have applied the same what you explained in the above, still it is going for scan. I am using Sql server 2005.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
   I have applied the same what you explained in the above, still it is going for scan. I am using Sql server 2005.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Azhar Iqbal</title>
		<link>http://blog.sqlauthority.com/2012/04/25/sql-server-introduction-to-basics-of-a-query-hint-a-primer/#comment-279399</link>
		<dc:creator><![CDATA[Azhar Iqbal]]></dc:creator>
		<pubDate>Wed, 25 Apr 2012 04:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18357#comment-279399</guid>
		<description><![CDATA[If I have another Customer Type  Visiting with almost same row of Business type  then Can I add another Hint 
option(Optimize for (@type=&#039;visting&#039;))]]></description>
		<content:encoded><![CDATA[<p>If I have another Customer Type  Visiting with almost same row of Business type  then Can I add another Hint<br />
option(Optimize for (@type=&#8217;visting&#8217;))</p>
]]></content:encoded>
	</item>
</channel>
</rss>
