DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old March 12th, 2007, 12:35 PM
mehere mehere is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 222 mehere User rank is Sergeant (500 - 2000 Reputation Level)mehere User rank is Sergeant (500 - 2000 Reputation Level)mehere User rank is Sergeant (500 - 2000 Reputation Level)mehere User rank is Sergeant (500 - 2000 Reputation Level)mehere User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 10 h 17 m 30 sec
Reputation Power: 8
SQLSTATE=42601 Error on Query

I am trying to query a DB2 Database through DTS in SQL Server 2000, however I am getting an error message I don't understand. I am a SQL Server Person by nature and don't really understand the DB2 syntax. Listed below is the query:
Code:
Query Removed

here is my error message:
Quote:
Error Description: [IBM][CLI Driver][DB2] SQL0199N The use of the reserved word "FOR" following "" is not valid. Expected tokens may include: ") OR ". SQLSTATE=42601
Any help that you could provide would be greatly appreciated.

Thanks.

PS: I copied the format from another query that's run through DTS (no error), just had to add a number of new fields, so I'm not sure what I'm not seeing.

[EDIT]Realized my issue, forgot an ending Parenthesis, if someone can explain to me how that Error Message relates to that issue, I would appreciate it.[/EDIT]

Last edited by mehere : March 12th, 2007 at 01:11 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > SQLSTATE=42601 Error on Query


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway