Welcome to the Axosoft Community, Sign in | Register | Help
in Search

Modifying Existing SP and save as new SP

Last post 02-11-2008, 8:00 AM by Dan Suceava. 1 replies.
Sort Posts: Previous Next
  •  02-07-2008, 6:06 PM 14956

    Modifying Existing SP and save as new SP

    Hello...

    The current Work Log report is does not have some of the fields that we would like to have on the report.  Is it possible someone can help me modify spS_WorkLog_WithNames stored procedure.  I would like to add field from

    DefectCustomFields.Custom_121 if ItemType = Defect
    FeatureCustom_Fields.Custom_123 if ItemType = Feature
    TaskCustomFields.Custom_128 if if ItemType = Task

    It will join _CustomFields table _ID field to parent tables _ID field.

    Example: TaskCustomFields.Task_ID = Tasks.Task_ID and Tasks.TaskID = WorkLog.Item_ID where ItemTypeID = 2

    Any help is appreciated.

    Thanks

    Divyesh

     

  •  02-11-2008, 8:00 AM 14973 in reply to 14956

    Re: Modifying Existing SP and save as new SP
    The spS_WorkLog_WithNames stored procedure uses dynamic SQL so that it can do paging, and also has lots of parameters for filtering purposes.  You won't be able to take advantage of either the paging or the filtering inside a custom report, so I would recommend just writing a new stored procedure that was simpler and more geared towards the data you need.
    Dan Suceava
    http://www.axosoft.com
View as RSS news feed in XML

© 2002 - 2007, Axosoft, LLC. All Rights Reserved. | Privacy
Bug Tracking | Defect Tracking Videos | Help Desk Software