Results 1 to 1 of 1

Thread: Calling stored procedures

  1. #1
    mswaim1 is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    NC
    Posts
    10

    Default Calling stored procedures

    I've been trying to call a stored proc on a note post save. Ive implemented a logic hook and get the proc to call....partially. I am passing the note id and it will complete some of the procs functions and stops however, when i call it independently in SQL Server, passing a note id, it runs sucessfully. When it fails to complete all functions after being called in note_post_save there are no SQL errors thrown. Is this a locking issue? I have played with config settings such as dump_slow_queries.. still no luck, any ideas?

    Added some of the custom code:

    \sugar\custom\modules\Notes\logic_hooks.php
    $hook_array['after_save'][] = Array(1, void, 'custom/modules/Notes/Notes_cstm.php', 'Notes_cstm', 'note_after_save_1');

    \sugar\custom\modules\Notes\Notes_cstm.php
    class Notes_cstm
    {
    function note_after_save_1()
    {
    //sleep(5);
    $query = "EXEC postSaveHandler '$this->id';";
    $db->query($query, false,"Error running users proc: ");

    }
    }

    Sugar 4.5.1h
    SQL Server 2005
    IIS 6
    Last edited by mswaim1; 2008-04-08 at 12:22 PM. Reason: Added some of the code in question

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Stored procedures in Zucker Reports
    By enrikm in forum Help
    Replies: 2
    Last Post: 2008-04-29, 10:23 AM
  2. Replies: 1
    Last Post: 2007-09-16, 01:06 AM
  3. where is the user_preference stored in mysql?
    By krizslash in forum Developer Help
    Replies: 6
    Last Post: 2007-08-26, 04:15 PM
  4. Where are the dropdown details stored?
    By neilstudd in forum Help
    Replies: 2
    Last Post: 2005-04-05, 08:16 PM

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
  •