...the SQL Query Tool that was designed with you in mind
Get Productive Today!
Home | Product Features | Screenshots | Videos | Download\Purchase | Support Forum | About

Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Getting a syntax error on valid syntax
fenterbug Offline
#1 Posted : Wednesday, July 21, 2010 2:50:30 PM
Rank: Newbie

Medals:

Groups: Member
Joined: 1/25/2010
Posts: 2
Location: Dallas, TX

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I have a stored procedure containing these statements:
Code:
   IF Update (OrderTypeID) BEGIN
      EXEC ReserveItem
            @LocationID = @LocationID,
            @OldQuantity = @OldQuantity,
            @NewQuantity = 0,
            @OrderType = @OldOrderTypeID

      EXEC ReserveItem
            @LocationID = @LocationID,
            @OldQuantity = 0,
            @NewQuantity = @NewQuantity,
            @OrderType = @NewOrderTypeID
   END ELSE BEGIN
      EXEC ReserveItem
            @LocationID = @LocationID,
            @OldQuantity = @OldQuantity,
            @NewQuantity = @NewQuantity,
            @OrderType = @NewOrderTypeID
   END


I know this code is valid. I've been running this stored procedure for years on both SQL Server 2000 and SQL Server 2005. QweryBuilder claim there is a syntax error "Error near: ELSE, Expecting Token:". I am connecting to a SQL Server 2005 db server.

As a note, I am not writing a new procedure. I'm viewing the DDL for an existing procedure. QweryBuilder 6.0.3
Sponsor  
 
Werysoft's QweryBuilder
bradwery Offline
#2 Posted : Wednesday, July 21, 2010 3:47:34 PM
Rank: Administration

Medals:

Groups: Administration
Joined: 2/5/2009
Posts: 84
Location: Manitoba, Canada

Thanks: 0 times
Was thanked: 3 time(s) in 3 post(s)
Thanks for reporting this. I'll get a fix for this as soon as possible.
Brad Wery
Lead Architect
bradwery Offline
#3 Posted : Monday, July 26, 2010 3:52:33 PM
Rank: Administration

Medals:

Groups: Administration
Joined: 2/5/2009
Posts: 84
Location: Manitoba, Canada

Thanks: 0 times
Was thanked: 3 time(s) in 3 post(s)
We have a fix for this which we plan on putting in the next release. Let me know if you need it sooner.
Brad Wery
Lead Architect
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 RC1 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.263 seconds.
Copyright © 2008-2010 Werysoft Inc. All rights reserved.
SQL Query Tool | SQL Editor | Database Development Tool | SQL References | Testimonials