Wrox Programmer Forums
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 4th, 2009, 07:22 AM
Authorized User
 
Join Date: Feb 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default parsing error

I am using sql express with visual studio..untill now itwas going fine but suddenly i encountered a new problem where i am getting parsing error if i do not specify my table name in square brackets.why is that so? can anyone plz explain??

like string sql="select * from [tablename]";
why square brackets????
 
Old April 4th, 2009, 09:12 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Maybe because your table name is a reserved word (like User) or contains spaces in its name?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old April 4th, 2009, 02:51 PM
Authorized User
 
Join Date: Feb 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanx a lot..that was precisely may problem..i was using a keyword as table name





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex.IsMatch - receive a parsing error smcirish VB How-To 1 June 14th, 2007 12:21 AM
Error in php xml parsing... caught PHP How-To 0 April 12th, 2007 03:54 AM
NuSOAP Help : XML error parsing WSDL on line 2 Odys PHP How-To 0 March 16th, 2007 04:11 PM
JSTL XML parsing error pankajbrathi JSP Basics 1 August 29th, 2006 07:35 AM
XML Parsing error: require </META> disaacs XSLT 1 August 6th, 2004 01:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.