Visual Basic .NET Forums    

Go Back   Visual Basic .NET Forums > VB.NET > Winforms Data Access

VB.NET Forums Newsletter Signup:
Email address:


Winforms Data Access VB.NET development for data access and back-end related areas

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2008, 12:37 PM
VB.NET Forum Enthusiast
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 47
Reputation: 5
Nader is on a distinguished programming path ahead
Question what does mean this Error: Syntax error in FROM clause

It show me this error at OleDbDataReader = cmd.ExecuteReader

"Syntax error in FROM clause"
Reply With Quote
  #2 (permalink)  
Old 10-10-2008, 12:53 PM
VB.NET Forum Master
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Jun 2005
Age: 24
Posts: 255
Reputation: 107
ss7thirty done a little coding in his/her timess7thirty done a little coding in his/her timess7thirty done a little coding in his/her time
Wink

Well you are executing a SQL command. Post the syntax of the command that is being and run and then I or someone else can tell you what is wrong with your SQL. That object is executing code on a database and there is an error in that syntax.

i.e. SELECT *a FROM syscolumns

produces the error message

Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'a'.

The following is the correct syntax

SELECT * FROM syscolumns

It seems that the OleDb command parser is a bit more accurate and know that it is in your from clause. Make sure that the table exists, that your order by/ group by is valid, or that any joins that you may be performing use valid syntax.
Reply With Quote
  #3 (permalink)  
Old 10-10-2008, 1:01 PM
VB.NET Forum Enthusiast
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 47
Reputation: 5
Nader is on a distinguished programming path ahead
Default

Thank you for help!

Last edited by Nader; 10-10-2008 at 2:52 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 8:25 PM.




Click to advertise here

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
For advertising opportunities click here.