Next full month function

Post Author: kimiko
CA Forum: Formula
Hi,
I am new to Crystal, so I hope this question makes sense...
I am trying to use a function to select the next full month based on the current date. The 'lastfullmonth' function works for me, but I need to obtain the next full month rather than last month. The 'next30days' function will not work because it does not include a full month. For example, today is November 27, and I need to view all of December. If I use 'next30days,' I will see the end of November and it will not reach to the end of December. Is there a function or formula to view the next full month?
Thanks in advance!!!

Post Author: yangster
CA Forum: Formula
this issue becomes a lot easier if you add the custom function cdlastdayofmonth and cdfirstdayofmonth from the repositorydatetimevar begin_date := cdfirstdayofmonth(dateadd("m", 1, currentdatetime);datetimevar end_date := cdlastdayofmonth(dateadd("m", 1, currentdatetime);your_date_field in begin_date to end_datesimply log into your repository, navigate to the date formulas and right click to add to report and you will be able to use the custom functionsthis can also be done with some manual date manipulations but its rather messy

Similar Messages

  • Date function Retirement in due next 8 month

    Dear I am developing report and developed all query,
    Infact i want to display all employee records who has only 8 month remain to retirement age (AFTER 60 YEAR EMPLOYEE WILL BE RETIRE).
    Please guide me how can i do this
    Please find query :
    SELECT DISTINCT DECODE (SUBSTR (hou.NAME, 1, 1),
    'C', 'Central Region',
    'M', 'Mehran Region',
    'H', 'Head Office',
    'L', 'Head Office',
    'N', 'Northern Region',
    'S', 'Southern Region'
    ) regions,ppt.USER_PERSON_TYPE,st.USER_STATUS,
    hou.NAME branch, ppd.segment2 department, pgd.segment2 grade,
    pf.PERSON_TYPE_ID ,pf.employee_number emp_num, pf.full_name emp_name,
    pf.date_of_birth dob, pf.sex,
    ppd.segment1 designation,
    pgd.segment2 grade2, hla.location_code LOCATION,
    pps.date_start joining_date,
    TRUNC(months_between(substr (sysdate,1,10),add_months(pf.date_of_birth,720))) RETITEMENT_NEXT_MONTH,sysdate,
    round (months_between( sysdate,pf.date_of_birth)) months_between_all,
    substr (sysdate,1,10) s
    FROM hr_organization_units hou,
    per_people_f pf,
    per_person_types ppt,
    per_all_positions pap,
    hr_locations_all hla,
    per_position_definitions ppd,
    per_all_assignments_f paaf,
    per_assignment_status_types st,
    per_grade_definitions pgd,
    per_periods_of_service_v pps
    WHERE pap.position_definition_id = ppd.position_definition_id --(+)
    AND pap.position_id = paaf.position_id
    and paaf.ASSIGNMENT_STATUS_TYPE_ID = st.ASSIGNMENT_STATUS_TYPE_ID
    and pf.PERSON_TYPE_ID = ppt.PERSON_TYPE_ID
    AND hla.location_id = pap.location_id
    AND paaf.primary_flag = 'Y'
    AND paaf.position_id IS NOT NULL
    AND pps.final_process_date IS NULL
    and st.USER_STATUS NOT like '%Resigned%'
    AND pf.person_type_id IN (6, 7, 1118)
    AND paaf.employment_category ='PERMANENT'
    AND hou.organization_id = paaf.organization_id
    AND pf.person_id = paaf.person_id
    AND paaf.grade_id = pgd.grade_definition_id
    AND paaf.effective_end_date > SYSDATE
    AND pf.person_id = pps.person_id
    --and round (months_between( sysdate,pf.date_of_birth)) <= 6
    AND DECODE (SUBSTR (ppd.segment3, 1, 1),
    'C', 'Central Region',
    'M', 'Mehran Region',
    'N', 'Northern Region',
    'S', 'Southern Region',
    'H', 'Head Office'
    ) LIKE :p_region
    AND hou.NAME LIKE NVL (:p_branch, '%')
    AND pgd.segment2 LIKE NVL (:p_grade, '%')
    AND ppd.segment2 LIKE NVL (:p_department, '%')
    AND hla.location_code LIKE NVL (:p_location, '%')
    AND ppd.segment1 LIKE NVL (:p_designation, '%')
    AND TO_CHAR (paaf.effective_start_date, 'YYYY/MM/DD') <= SUBSTR (:p_date, 1, 10)
    Regards
    Edited by: Shahid on Dec 31, 2011 4:02 AM

    Hi,
    Shahid wrote:
    Dear I am developing report and developed all query,
    Infact i want to display all employee records who has only 8 month remain to retirement age (AFTER 60 YEAR EMPLOYEE WILL BE RETIRE)So the retirement date will be
    ADD_MONTHS ( pf.date_of_birth
               , 720     -- 720 = 60 * 12
               )and if the person is due to retire within the next 8 months (that is, if the retirement date falls between now and 8 months later than now), then the following condition will be true:
    pf.date_of_birth  BETWEEN  ADD_MONTHS (SYSDATE, -720)     -- 720 =  12 * -60
                AND        ADD_MONTHS (SYSDATE, -712)     -- 712 = (12 * -60) + 8
    Please find query :
    substr (sysdate,1,10) s ...The first argument to SUBSTR is supposed to be a VARCHAR2. Don't use a DATE (such as SYSDATE) where a VARCHAR2 is expected. Whatever you're trying to do here, I'll bet you can do it just as easily, more efficiently, and more reliably without using SUBSTR or VARCHAR2s.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.

  • Double charge full month of Family Plan which only used for 7 days  and full month of individual plan

    I changed from Family Plan to Individual Plan and I got only refund back $9.99 for one line that stay with Verizon but I got charged double both Family Plan and Individual Plan for full month without any credits for 23 days of unused Family Plan. ($120-discount Family Plan + $39.99-discount Individual Plan) per 1 month (from 06/07 to 07/06).
    I am asking the credit of unused 23 days of Family Plan back into my account when I changed from Family plan to Individual plan then I got the answer like this which I do not agree at all.
    "As the previous rep stated since the numbers were ported out the bill continued to bill until the end of the current bill cycle. This is the reason why there was no credit issued for the first month in advance. Had the numbers not been ported, and instead disconnected, there would have been a refund issued for any unused portion of the service"
    I never saw any clause saying that porting numbers would not get credit issued for any unused portion of the month billed in advance.
    I expected refund 23 days credit of the Family plan from 06/06 to 07/06 back to my account since the family plan supposed to be disconnected on 06/07 but because of porting time schedule from other carrier so that all 4 lines completely disconnected the service 1 week later which is on 06/13/2012 and only 1 line(my current number) left as individual plan as it planned originally 06/07.
    Family Plan with corporate discount: $120-$16 cisco discount/month------> each day is: $104/30 days= $3.46/day
                       23 days unused of Family Plan is : $3.46 x 23= $79.58
    I still expect missing credits into my account: $79.58-$9.99= $69.59.
    At the least if you want to take away the $16 discount for the last month of Family plan, then you still owe me the refund of ($69.59-$16)= $53.59

    verizonloyal wrote:
    You left out the next important sentence ..... If it is your intention to fool all other members, please correct it.
    This is the path for the whole thing:"Customer Agreement"
    http://www.verizonwireless.com/b2c/support/customer-agreement
    I am not a Prepaid customer and I will be entitled to a refund of unused charge from an advanced month charge. Any cancellation should honor that..I called the customer representative to ask in advance what happened when I plan to keep only one line and change to individual plan ,she assured me that I will get credits for any unused of Family Plan of the advanced month, the new Individual Plan charge will take over and I would not get double charge at all.
    I am the customer with Verizon very long time, more than 5 years and I can not believe that you charged me double like that.
    Please return me back my money.
    I am NOT trying to fool anyone. As with the sentence you highlighted, if what I highlighted ONLY pertained to prepaid customers, it would have indicated it in the sentence. Since it did not, it DOES NOT. Postpaid customers are NOT mentioned at all within the section about porting numbers. Are you saying since they are not mentioned that postpaid customers CANNOT port their numbers? Didn't think so. The entire paragraph is about ALL Verizon customers EXCEPT the sentence which specifically singles out prepaid customers. You are responsible for all charges until the end of the billing cycle from the point of porting, not from when you asked to be ported. Therefore you are responsible for the charges for the "Family Plan" until the end of the billing cycle.
    Unfortunately, you only left ONE phone on the account when you ported out your numbers. Therefore the single line could NOT have been left on a Family Plan, and was therefore migrated to an Individual Plan. AT MOST, you would be entitled to a prorated refund of the $9.99 access fee FOR THAT ONE LINE, since that line was not canceled due to the porting. However, you should ONLY be responsible for Individual Plan charges from the point your single line was migrated until the end of the billing cycle, NOT for an entire month of service. Of course, your bill would show that the following month was being charged, too, since Verizon charges a month in advance.
    While Verizon may refund you more money just to placate you, according to the CUSTOMER AGREEMENT, you are not entitled to it.
    Good luck.

  • Getting data of next 4 months in Webi

    Hello Experts,
    I have data of next  4 years in my database.  I have created one date object in universe and I have created prompt on this date object. My requirement is as follows :
    User will enter the date through prompt and my report should pull data for next 4 months  from entered date  and display in report as follows:
    e.g If user enters date as 17/02/2011, then report should pull data of next 4 months as follows:
          March                          Apr             May           Jun     
    Records for March       Records for April     ........          .......
    I think this should be achivable using Crosstab. But I am not getting exact way to do this.
    Any help in this regard is greatly appreciated.
    Regards,
    Chinmay

    Other approach is:
    1. Go to Universe Designer
    2. Create a filter named "Prompt Date + 4 months"
    In the 'Where' textbox write something like this:
    dateDimension between @Prompt('Enter date','D',,mono,free) and dateadd ( Month ,4, @Prompt('Enter date','D',,mono,free) )
    (I am using Sybase database syntax that's why I can use dateadd function.  You have to use the equivalent function depending on the database you are using).
    3. Back to WebIntelligence, in Query Editor, Pane Filter use this filter "Prompt Date + 4 months", instead of the condition you were using before
    4. Then you can use a function like
    =NumberOfMonth([Date Dimension])
    in the headers of your crosstab.

  • Getting Number of days full month in a selected period

    Now I want to know the Total number days full months in a selected time period.
    select period 1/02/2014 to 15/03/2014 ->28+31=59
    count
    (Descendants(
    [Время].[Год-Месяц-День].CurrentMember,
    [Время].[Год-Месяц-День].[Дата])) ->YMD-> 2014-365, 02-28,03-31
    How to achieve aggregation of the year
    59 days?

    VBA!DATEDIFF("d",[Time].[Y-M-D].CurrentMember,[Time].[Y-M-D].[date].membervalue)
    Does not work, gives an error
    CellOrdinal 0
    VALUE Error Number Query (3,
    1) Function MEMBERVALUE waits for
    argument 1 expression element.
    Expression levels were used.
    Query (1, 32) Runtime Error managed stored
    procedures DATEDIFF: Microsoft :: AnalysisServices :: AdomdServer :: AdomdException.
    FORMATTED_VALUE Error Number Query (3, 1)
    function waits for the argument MEMBERVALUE
    1 expression element. Expression
    levels were used. Query (1, 32) Runtime Error
    managed stored procedures DATEDIFF: Microsoft :: AnalysisServices :: AdomdServer :: AdomdException.
    DATEDIFF used VBA function?

  • Changin the code of this form to include current month + the next 8 months

    Hi All,
    please i need to change the code of this BW ABAP routine to filter the data between the current month + the next 8 months
    example:
    if i execute my BW DTP (data transfer process) with this 0calmonth date 201007 i want to extract data between 201007 and 201103
    actually the code is:
    form compute_
    tables l_t_range structure rssdlrange
    changing p_subrc like sy-subrc.
    Insert source code to current selection field
    $$ begin of routine - insert your code only below this line -
    data: l_idx like sy-tabix.
    read table l_t_range with key
    fieldname = ' '.
    l_idx = sy-tabix.
    if l_idx 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line
    can you help me please on how should be the ABAP code.
    thanks
    Bilal

    Hi All,
    this is the right code for this routine BW:
    *&  Include           RSBC_SEL_ROUTINE_TPL
    program conversion_routine.
    Type pools used by conversion program
    type-pools: rsarc, rsarr, rssm.
    tables: rssdlrange.
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
        Fieldname       = CALMONTH
        data type       = NUMC
        length          = 000006
    form compute_CALMONTH
      tables l_t_range structure rssdlrange
      changing p_subrc like sy-subrc.
          Insert source code to current selection field
    $$ begin of routine - insert your code only below this line        -
    data: l_idx like sy-tabix.
    data : v_date like sy-datum.
    data : v_new_date like sy-datum.
    v_date = sy-datum.
    read table l_t_range with key
    fieldname = 'CALMONTH'.
    l_idx = sy-tabix.
    l_t_range-iobjnm = '0CALMONTH'.
    l_t_range-FIELDNAME = 'CALMONTH'.
    l_t_range-sign = 'I'.
    L_T_RANGE-OPTION = 'BT'.
    l_t_range-low = v_date+0(6).
        CALL FUNCTION 'DATE_CREATE'
        EXPORTING
          anzahl_monate = 8
          datum_ein = v_date
        IMPORTING
          datum_aus = v_new_date.
    l_t_range-high = v_new_date+0(6).
    if l_idx <> 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    endform.

  • Calendar apps:  1. That my wife and I can share.  2. That shows some of the text in the full month view.  3.  That can have "public" events and "private" events.

    Hello All,
    I am looking for a calendar app that my wife and I can share on both of our iphones.  I am new to this and haven't found an app that will do what I want.
    1. I want the full month view to show some of the text of each event:  Like Pocket Informant and Monthly Calendar Mocha do (not just a dot).
    2. That both of us can post and see each other's events.
    3. That each of us can post "private" events that the other person won't see on their phone.  Things like, "Wife's surprise party."
    4. That sync's both calendars automatically.
    I know a lot of people use Fantastical, but I don't think that would give me the text in the full month view.
    Is there an app that can do all of the above?
    Thanks in advance.
    Rick

    Sharing and syncing is a feature of the calendar database; you can have multiple calendars, and each can be private, shared with specific other iCloud users, or public. If you have a Mac you can set that up in the Calendar app; for either Mac or Windows you can set it up by logging in to iCloud.com using your Apple ID.
    The other calendar apps all use the Apple calendar database; they just have different ways of presenting the content, and can also take advantage of "hidden" features of the Apple calendar database (such as adding icons to entries).

  • I have a MacBook Air. With latest version of Pages and Yosemite my full-screen function no longer operates.

    My full screen function no longer works in Pages after latest software updates for Pages and Yosemite.
    Has anyone else experienced this phenomena? It flashes to full screen then immediately reverts to the normal display.

    Yes it does.
    Open your Pages document in Pages v5.5.1.
    To enter full-screen:
    Pages > View > Enter Full Screen (or control+command+F)
    Hover over the green traffic light in your Title bar. It will show diagonal full-screen arrows. Click.
    To exit full-screen:
    Hover over the Document Title bar, then Pages > View > Enter Full Screen (or control+command+F)
    Move your pointer over the Document Title bar, and press the green traffic light again

  • How to use mac's full screen functionality with Adobe acrobat XI?

    I recently switched to mac, so font have  much experience with this.
    My adobe reader is missing mac's full screen functionality (the two arrows on right that make mac fullscreen).
    so, if i have three pdfs open, i cannot switch between them using the 4 finger swipe..
    Please note that this is different from the adobe functionality (command + L) which allows it to become fullscreen, but it still occupies the desktop and so, i cannot swipe between different pdfs.
    Thank you!

    Nope that is just the way it is with Mac OS X and the way Apple has setup the dual screen system.

  • How to calculate age based on current month and over the next 12 months in Webi 4.1

    Hi,
    I am working on a report where I need to show employees who turned 65 from the time the report is run to over the next 12 months.I have the 'Date of Birth' field available. I am using Bex Query as a data source and webi 4.1. How do I calculate this in Webi 4.1. I appreciate any help.
    Thank you,
    Charvi.

    Hi Charvi,
    Get the all employees who are all in 64 age bucket till yesterday.  Keep indicator for these employees.
    Then obviously these employees will be falling in 65 age in coming 12 months/365 days.
    Same you can get at Bex level also. Create formulae :
    if employee age = 64 then 1 else 0.
    (AGE = 64 * 1 + 0)
    Then create condition on this formulae as Value = 1.
    Revert back your feedback.
    Regards, Vijay

  • Depreciation for full month

    Hi Friends.
    My client requirement is to provide the depreciation for the full month in the year of acquisitiona as well as sale.  For example, if an asset is acquired on 10th of a month, the system should calculate depreciation for the full month though the asset is not held during the first 10 days.  Similarly at the time of sale also.
    Your answers carry more weightage with good appreciation.
    Regards.
    Srini

    Hi,
    For this you have to set up:
    2 new period controle rule's     TC OAVS
    Define Calender Assignments  TC OAVH
    Maintain Period Control Methods TC AFAMP
    You have to assign this to your depreciation key TC AFAMA (perhaps a new depreciation key)
    It the depreciation key the the follow options should not be selected:
    Dep. to the day

  • Not full month depreciation

    Dear SAP Experts,
    We have a need to calculate the fixed assets depreciation - not for the full month, but just the last 3 weeks of it.
    For example,  we post the APC as of 01/07/11. We need to depreciate our fixed assets from 01/08/11 to 01/31/11 only instead of posting the full-month depreciation amounts. The depreciation for January 2011 should be:
    monthly depreciation amount/31 days in the month * 24 days (from 01/08/11 to 01/31/11 )
    The remaining depreciation periods should be the full amount based on the depreciation key and useful life.
    This is a one-time requirement and I was wondering what the easiest and automated way of doing it in FI-AA is.
    Please advise.
    Thank you in advance,
    Inna

    Hi Shayam,
    Thank you for your prompt response.
    Our company is going public and we have to post the fair market value of fixed assets to reflect the purchase accounting entries at a date which falls on e.g. 01/07/11. That's why we need to calculate the 3/4 of the monthly depreciation rate.
    If we cannot switch from daily to monthly depreciation back and forth, is posting the depreciation for the first week of month back manually the only solution for us? Or is there any better (or more SAP standard) way of doing that?
    Please advise.
    Thank you in advance,
    Inna

  • Adding Full Screen Function Within Browswer

    We are nearing completion of a video project that on our web site we have several quicktime movies that I need to play full screen when they click on the movie link. I can do this within quicktime and also if I type in a URL from within Quicktime, but how do we program that function so that it will open in full screen function by clicking on our links? Any help would be so much appreciated.
    Rob

    Kirk,
    I copied the wrong part. Here it is again.
    Need a little help with QuickTime embed tag for both IE and Firefox.
    We have completed the development of a new mechanism for transmitting very large files over HTTP and I would really like to showcase this new mechanism with QuickTime, my favorite media player. Problem, I do not know how to build the embed tag that will play the Full Screen like what is seen here on the Batman trailer: http://www.apple.com/trailers/wb/batman_begins/trailer4/
    Key Point: I do not want to use iTunes as they did with the Batman trailer.
    When the solution is completed, I would like to have a web page that allows my users to select from a link to play the video in full screen. Once the request is executed, the browser will start playing the video in full screen within the browser.
    1. Is it possible to do this without iTunes?
    2. Is it possible to do Full Screen without leaving the browser? I understand that you could create an XML file to do this but it calls the users local QuickTime player, which I do not want to do.
    <?xml version="1.0"?>
    <?quicktime type="application/x-quicktime-media-link"?>
    <embed
    autoplay="true"
    fullscreen="full"
    loop="false"
    quitwhendone="false"
    volume="90"
    src="" class="moz-txt-link-rfc2396E" href="http://...../video/xlvideo.mov">"http://...../video/xlvideo.mov"
    />
    <object classid="" class="moz-txt-link-rfc2396E" href="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B">"clsid:02BF25D5-8C17-4B23-BC8 0-D3488ABDDC6B" width="320" height="240" codebase="" class="moz-txt-link-rfc2396E" href="http://www.apple.com/qtactivex/qtplugin.cab">"http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="/mysites/xl.mov"/>
    <param name="autoplay" value="true" />
    <param name="controller" value="false" />
    <param name="cache" value="true" />
    <param name="href" value="&lt;/mysites/play-fs_v1.qtl&gt; T&lt;quicktimeplayer&gt; E&lt;CONTROLLER=True AUTOPLAY=True&gt;" />
    <embed src="" width="320" height="240" href="" autoplay="true" controller="false" cache="true" pluginspage="http://www.apple.com/quicktime/download/">
    </embed>
    </object>
    Please advise how I can create a solution with QuickTime to deliver Full Screen video from the embed tag without leaving the browser. Thank you in advance for any advise. As soon as we have completed the beta test of the new HTTP mechanism, I look forward to turning it over to this list first. You will be able to load video, VR’s very very very fast.
    Best,
    Donald
    Rob

  • How to calculate next 12 months

    Hi Gurus,
    If a user enters a date like : 15.05.2007, I need to calculate next 12 months values.
    i.e. low = 16.05.2007
         high= 15.05.2008.
    Any help greatly appreciated. Thanks.
    Best Regards,
    Reddy.

    data: l_month         type i,
            l_year          type i,
            l_sum_of_months type i.
    data : V_DATE TYPE  D,
             V_MONTHS TYPE  I DEFAULT 0,
             E_DATE TYPE  D.
        l_sum_of_months = v_date+4(2) + v_months.               "YREM981595
        l_month         = ( l_sum_of_months + 1 ) mod 12.       "YREM981595
        if l_month eq 0.
          l_month = 12.
        endif.
        l_year  = l_sum_of_months div 12.
        l_year  = l_year + v_date(4).
        if l_year gt 9999.
          e_date      = con_hidate.
        else.
          e_date+6(2) = '01'.
          e_date+4(2) = l_month.
          e_date(4)   = l_year.
          e_date      = e_date - 1.
        endif.
    rewards if useful,
    regards,
    nazeer

  • Excel 14.1.0 (110310) on OSX 10.7.5 doesn't have Full Screen function

    I have OSX 10.7.5 on 2009 MacBook with Excel 14.1.0 but I don't have Full Screen function. I Googled and am sure that this version of Excel and OSX should have Full Screen, but I just can't find it. If you can help I would greatly appreciate it. Thank
    you very much!

    I have OSX 10.7.5 on 2009 MacBook with Excel 14.1.0 but I don't have Full Screen function. I Googled and am sure that this version of Excel and OSX should have Full Screen, but I just can't find it. If you can help I would greatly appreciate it.
    Thank you very much!
    This may help?
    https://support.office.com/en-au/article/Reduce-screen-clutter-for-easier-document-viewing-69bc197a-669d-4633-98c0-f219eb92ef09?ui=en-US&rs=en-AU&ad=AU
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

Maybe you are looking for

  • Installation problem in 10g on windows vista

    my system's OS is window vista. when i installed oracle 10 g then it is install easily and also working , but after reopen the system then it(oracle 10 g) is not working. gives different type error just like "listener does not currently know of servi

  • Integration Solution manager with R/3

    Hi, We are looking for possibilities to implement Solution manager as a replacement for our current notification system. Is there any possibility in Solution manager to communicatie with objects in R/3? What we want is to post hours in Solution manag

  • Implementing Multi-agent system ..??

    Hello, I have to build a multi agent system for information retrieval from a blog portal.. now the problem is that i'm not able to decide which agent library should i go for.. there are so many of them available ..jatlite, jade, aglets etc..what do u

  • I go to share menu to convert to quicktime and the menu is grayed out.  Don't know what to do.

    Working in Final Cut Pro X, I have a 17 minute clip.  It has two video paths and two audio (narration and music)  I also have some titles.  Anyway I go to the share menu to make it compatible to use in a dvd and the Share menu is completely grayed ou

  • Unable to enable service broker

    Dear all, I tried to create DBMail in one of our prod server, i did the following operation at start getting error. Kindly help me how to avoid this problem alter database msdb set enable_broker with no_wait Error: Database state can't be changed whi