<?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/"
		>
<channel>
	<title>Comments on: Incorrect syntax near the keyword &#8216;table&#8217; in TSQL</title>
	<atom:link href="http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/</link>
	<description>Design minded Internet Programmer</description>
	<lastBuildDate>Sun, 05 Feb 2012 06:54:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Eric Fickes</title>
		<link>http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/comment-page-1/#comment-3832</link>
		<dc:creator>Eric Fickes</dc:creator>
		<pubDate>Mon, 28 Nov 2011 19:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/#comment-3832</guid>
		<description>The code is correct, but the word &quot;table&quot; is a reserved keyword in SQL. I never name my database tables &quot;table&quot; so I&#039;ve never run into this one before.Do you have any other tables in your database that you can run this code against?-EF </description>
		<content:encoded><![CDATA[<p>The code is correct, but the word &#8220;table&#8221; is a reserved keyword in SQL. I never name my database tables &#8220;table&#8221; so I&#039;ve never run into this one before.Do you have any other tables in your database that you can run this code against?-EF</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAHUL SHARMA</title>
		<link>http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/comment-page-1/#comment-3831</link>
		<dc:creator>RAHUL SHARMA</dc:creator>
		<pubDate>Mon, 28 Nov 2011 16:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/#comment-3831</guid>
		<description>public partial class _Default : System.Web.UI.Page  
{ 
    SqlConnection con = new SqlConnection(@&quot;Data Source=.sqlexpress;Initial Catalog=rahuldb;Integrated Security=True&quot;); 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!IsPostBack) 
        { 
            fillgrid(); 
        } 
    } 
 
    public void fillgrid() 
    { 
        con.Open(); 
        SqlCommand cmd = new SqlCommand(&quot;Select * from table&quot;, con); 
        SqlDataReader dr = cmd.ExecuteReader();    &lt;&lt;-----ERROR 
        GridView1.DataSource = dr; 
        GridView1.DataBind(); 
        dr.Close(); 
        con.Close(); 
    } 
} 
 
 
I am gettin an ERROR&quot;Incorrect syntax near the keyword &#039;table&#039;.&quot; can u plz help me out to get rid off dis error... </description>
		<content:encoded><![CDATA[<p>public partial class _Default : System.Web.UI.Page<br />
{<br />
    SqlConnection con = new SqlConnection(@&quot;Data Source=.sqlexpress;Initial Catalog=rahuldb;Integrated Security=True&quot;);<br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        if (!IsPostBack)<br />
        {<br />
            fillgrid();<br />
        }<br />
    } </p>
<p>    public void fillgrid()<br />
    {<br />
        con.Open();<br />
        SqlCommand cmd = new SqlCommand(&quot;Select * from table&quot;, con);<br />
        SqlDataReader dr = cmd.ExecuteReader();    &lt;&lt;&#8212;&#8211;ERROR<br />
        GridView1.DataSource = dr;<br />
        GridView1.DataBind();<br />
        dr.Close();<br />
        con.Close();<br />
    }<br />
} </p>
<p>I am gettin an ERROR&quot;Incorrect syntax near the keyword &#039;table&#039;.&quot; can u plz help me out to get rid off dis error&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Fickes</title>
		<link>http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/comment-page-1/#comment-2958</link>
		<dc:creator>Eric Fickes</dc:creator>
		<pubDate>Thu, 23 Dec 2010 21:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/#comment-2958</guid>
		<description>Man I&#039;m glad this helped somebody else, I remember how frustrating this one was.  My money is on yes, Microsoft does this on purpose. ;) </description>
		<content:encoded><![CDATA[<p>Man I&#039;m glad this helped somebody else, I remember how frustrating this one was.  My money is on yes, Microsoft does this on purpose. <img src='http://ericfickes.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/comment-page-1/#comment-2957</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Thu, 23 Dec 2010 20:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/2010/04/incorrect-syntax-near-the-keyword-table-in-tsql/#comment-2957</guid>
		<description>Thanks Eric, I can now stop beating my head against the wall wondering why it doesn&#039;t like my table variable. Does Microsoft do this sort of thing just to annoy us? </description>
		<content:encoded><![CDATA[<p>Thanks Eric, I can now stop beating my head against the wall wondering why it doesn&#039;t like my table variable. Does Microsoft do this sort of thing just to annoy us?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

