dbTalk Databases Forums  

Regarding sql error

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Regarding sql error in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sharmin.sdconsultant@gmail.com
 
Posts: n/a

Default Regarding sql error - 04-24-2007 , 02:02 PM






HI,
Can anyone tell me abt the following error while i was running my
ASP.net project and codes were in vb.net?
Line 1: Incorrect syntax near 'Number'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Line 1:
Incorrect syntax near 'Number'.

Source Error:


Line 118: MyCommand.Connection.Open()
Line 119:
Line 120: myDR = MyCommand.ExecuteReader
Line 121:
Line 122: If myDR.Read() Then


Source File: E:\iConnect\Emp_Basic.aspx.vb Line: 120

Stack Trace:


[SqlException: Line 1: Incorrect syntax near 'Number'.]
System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.SqlClient.SqlCommand.ExecuteReader()
iconnect.Emp_Basic.Getvalue() in E:\iConnect\Emp_Basic.aspx.vb:120
iconnect.Emp_Basic.Page_Load(Object sender, EventArgs e) in E:
\iConnect\Emp_Basic.aspx.vb:89
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


Thanks in advance.
senij


Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Regarding sql error - 04-24-2007 , 05:08 PM






(sharmin.sdconsultant (AT) gmail (DOT) com) writes:
Quote:
Can anyone tell me abt the following error while i was running my
ASP.net project and codes were in vb.net?
Line 1: Incorrect syntax near 'Number'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Line 1:
Incorrect syntax near 'Number'.
The error means that there was a syntax error in your SQL command. As you
did not include the text of this command, I cannot say what you need to
do to correct the error.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.