Results 1 to 3 of 3

Thread: Schedulers MSSQL problem.

  1. #1
    rbouza is offline Junior Member
    Join Date
    Mar 2009
    Posts
    1

    Default Schedulers MSSQL problem.

    Hello,

    We set up a few schedulers to run including the native workflow one. But we are getting this errors on the logs:

    Wed Apr 29 12:21:02 2009 [25274][1][FATAL] SQL Server error: Incorrect syntax near 'st'.
    Wed Apr 29 12:24:01 2009 [25374][1][FATAL] Incorrect syntax near 's'.: UPDATE schedulers s SET s.status = N'Active' WHERE s.id = N'3eb91e11-091c-8be4-5eb8-49c3a614ab4a'
    Wed Apr 29 12:24:01 2009 [25374][1][FATAL] SQL Server error: Incorrect syntax near 's'.
    Wed Apr 29 12:24:01 2009 [25374][1][FATAL] Incorrect syntax near 'st'.: UPDATE schedulers_times st SET st.status = N'failed' WHERE st.id = N'ee180991-3a13-2439-d162-49f8696a0095';
    Wed Apr 29 12:24:01 2009 [25374][1][FATAL] SQL Server error: Incorrect syntax near 'st'.
    Wed Apr 29 12:27:01 2009 [25483][1][FATAL] Incorrect syntax near 's'.: UPDATE schedulers s SET s.status = N'Active' WHERE s.id = N'3eb91e11-091c-8be4-5eb8-49c3a614ab4a'
    Wed Apr 29 12:27:01 2009 [25483][1][FATAL] SQL Server error: Incorrect syntax near 's'.
    Wed Apr 29 12:27:01 2009 [25483][1][FATAL] Incorrect syntax near 'st'.: UPDATE schedulers_times st SET st.status = N'failed' WHERE st.id = N'ee180991-3a13-2439-d162-49f8696a0095';

    So as far as I know table aliases on MSSQL 2005 is not supported for UPDATES (maybe I'm wrong). So if you know how to solve this or you are having the same problem, please let the community know.

    Thanks for your help, is really appreciated.

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Schedulers MSSQL problem.

    I'm not sure where the query is off hand but this is definitely a bug. MSSQL doesn't support "UPDATE schedulers s SET...". It DOES support "UPDATE schedulers SET..." and "UPDATE s FROM schedulers s SET..." though. I'd suggest opening a bug at bugs.sugarcrm.com and copying that error along with this post here into it.

  3. #3
    maloner's Avatar
    maloner is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Westmeath & Dublin
    Posts
    95

    Default Re: Schedulers MSSQL problem.

    We are also having the same problem although it seems to be only for the Report Generation Job.

    Anyone have any ideas?
    John Malone
    Provident CRM Ltd
    SugarCRM Implementation Partner - Ireland
    http://www.providentcrm.ie/sugar-crm.html
    email: john@providentcrm.ie
    ph: 01-4403685

    Checkout our Monthly meetup: http://lampsoftware.meetup.com/9/
    SugarCRM Ireland Linked-In Group: http://www.linkedin.com/groups?gid=884327
    SugarCRM UK Linked-In Group: http://www.linkedin.com/groups?gid=1813385

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Datetime Field problem with Mssql.
    By jasv in forum Developer Help
    Replies: 4
    Last Post: 2011-12-05, 09:33 AM
  2. Schedulers - Inbound mail problem
    By Vladus in forum Help
    Replies: 0
    Last Post: 2009-04-05, 09:44 AM
  3. problem to connecting SurarCRM 4.5.1g to MSSQL !Please Help me
    By everlives in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-11-11, 04:37 AM
  4. MSSQL installation problem
    By benjamin.dorleans in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2007-03-16, 02:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •