By Year starting in 2010

I use the following Code for Year at a time, in this case data pulled will be for year 2013:
(yourdatecolumn >= DATEADD(yy,DATEDIFF(yy,0,GETDATE())-1,0) AND yourdatecolumn < DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0))
But, it's friday and for the life of me I can't figure out how to get data starting with 2010 and earlier.
This code works for me. I can use mm for month and -2 for two months of data. So I know the code is good.
I welcome fresh minds, mine is gone for the day.
Thanks
jr7138

DECLARE @dates TABLE (date DATE)
DECLARE @i INT = 0
WHILE @i < 10000
BEGIN
INSERT INTO @dates (date)
VALUES (DATEADD(DAY,0-@i,GETDATE()))
SET @i = @i + 1
END
DECLARE @yearMod int
SET @yearMod = 2010 - 2014
SELECT * FROM @dates
WHERE date BETWEEN DATEADD(YEAR,@yearMod,CAST(DATEADD(DAY,1-DAY(GETDATE()),DATEADD(MONTH,1-MONTH(GETDATE()),GETDATE())) AS DATE)) AND DATEADD(YEAR,@yearMod+1,CAST(DATEADD(DAY,0-DAY(GETDATE()),DATEADD(MONTH,1-MONTH(GETDATE()),GETDATE())) AS DATE))
SELECT * FROM @dates
WHERE date BETWEEN DATEADD(YEAR,(2010 - 2014),CAST(DATEADD(DAY,1-DAY(GETDATE()),DATEADD(MONTH,1-MONTH(GETDATE()),GETDATE())) AS DATE)) AND DATEADD(YEAR,(2010 - 2014)+1,CAST(DATEADD(DAY,0-DAY(GETDATE()),DATEADD(MONTH,1-MONTH(GETDATE()),GETDATE())) AS DATE))
Here ya go.
If you can't or don't want to use params, just sub the math in. It'll make it much easier to read and keep track of.

Similar Messages

  • ADF Faces 10.1.3.0.4 - two-digit-year-start has no effect?

    Hi all,
    I have problem with entering date with an af:selectInputDate control:
    the user enters the date and on an onblur event, the adf field
    automatically reformats it:
    10.10.10 ->10.10.2010
    10.10.60 ->10.10.1960
    The user (customer) wants 2 things to change:
    1. if the given two digit year <= actual year (06):
    10.10.06 ->10.10.2006
    otherwise
    10.10.07 ->10.10.1907
    2. by entering a date, adf have to be accept the date without dots too:
    101006 ->10.10.2006
    1.: I tried to set theconfig param: <two-digit-year-start>2006</two-digit-year-start> (or with an EL expression) in the adf-faces-config.xml but it has no effect.
    Is it a totally wrong idea or is it a bug?
    Any other idea?
    2.: Is it possible to solve this problem with a built in control or converter? Or do i have to write my own converter?
    Thanks for any help!

    The exception is gone - I must have had something wrong in my classpath. However, I still see the warnings. Are those warnings expected when using ADF in conjunction with myfaces?

  • My year old mid 2010 Macbook Pro keeps powering off and leavin this error code.  Any help would be hugely appreciated.

    Hi, as the title reads my year old mid 2010 Macbook pro keeps powering off and leaving the below error message. 
    I'm a university student and desperately need my mac to hit deadlines etc.  If anyone could suggest a solution or shed any light i'd be hugely appreciative.  Thanks SO much.  Joe
    Interval Since Last Panic Report:  42069 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    CA297B40-FD7E-38B9-3447-C39824B28ECA
    Mon Jan  7 17:48:24 2013
    panic(cpu 0 caller 0xffffff7f9eed9b25): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0x0a2910de 0x00100000 0x00000000, BAR0 0xd2000000 0xffffff81308cd000 0x0a5480a2, D0, P3/4
    Backtrace (CPU 0), Frame : Return Address
    0xffffff813083a9f0 : 0xffffff801da1d626
    0xffffff813083aa60 : 0xffffff7f9eed9b25
    0xffffff813083aaf0 : 0xffffff7f9efd34b3
    0xffffff813083ab50 : 0xffffff7f9efd3527
    0xffffff813083abc0 : 0xffffff7f9f2db853
    0xffffff813083ad00 : 0xffffff7f9eff9659
    0xffffff813083ad30 : 0xffffff7f9eee38da
    0xffffff813083ade0 : 0xffffff7f9eedefac
    0xffffff813083afd0 : 0xffffff7f9eee01d8
    0xffffff813083b0a0 : 0xffffff7f9f8382a1
    0xffffff813083b220 : 0xffffff7f9f8355d7
    0xffffff813083b2a0 : 0xffffff7f9f8363b4
    0xffffff813083b330 : 0xffffff7f9f836973
    0xffffff813083b460 : 0xffffff7f9f837428
    0xffffff813083b570 : 0xffffff7f9f8559de
    0xffffff813083b5b0 : 0xffffff7f9f856be2
    0xffffff813083b860 : 0xffffff7f9f8698f4
    0xffffff813083b9d0 : 0xffffff7f9f86a240
    0xffffff813083ba10 : 0xffffff7f9f86aadf
    0xffffff813083bae0 : 0xffffff7f9f86acc2
    0xffffff813083bb20 : 0xffffff7f9f85ff20
    0xffffff813083bb50 : 0xffffff7f9f84228f
    0xffffff813083bba0 : 0xffffff801de665b3
    0xffffff813083bbc0 : 0xffffff801de6718d
    0xffffff813083bc20 : 0xffffff801de64b8f
    0xffffff813083bd70 : 0xffffff801da981e1
    0xffffff813083be80 : 0xffffff801da20aed
    0xffffff813083beb0 : 0xffffff801da10448
    0xffffff813083bf00 : 0xffffff801da1961b
    0xffffff813083bf70 : 0xffffff801daa5b16
    0xffffff813083bfb0 : 0xffffff801daced53
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(8.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f9ee72 000->0xffffff7f9f174fff
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f9e050000
                dependency: com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xff ffff7f9ee60000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7f9edb8000
             com.apple.nvidia.nv50hal(8.0)[9F3D09B5-3158-3D9E-BDA3-E71576AAD3B7]@0xffffff7f9 f175000->0xffffff7f9f497fff
                dependency: com.apple.NVDAResman(8.0.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f9ee 72000
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f9e050000
             com.apple.GeForce(8.0)[2E56ED9A-D848-3795-9E52-56BABDC9000C]@0xffffff7f9f7ff000 ->0xffffff7f9f8c1fff
                dependency: com.apple.NVDAResman(8.0.0)[A4C53A36-22B6-3075-82B9-9DE612A9C015]@0xffffff7f9ee 72000
                dependency: com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xff ffff7f9ee60000
                dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f9e050000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7f9edb8000
    BSD process name corresponding to current thread: PluginProcess
    Mac OS version:
    12C60
    Kernel version:
    Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
    Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
    Kernel slide:     0x000000001d800000
    Kernel text base: 0xffffff801da00000
    System model name: MacBookPro6,2 (Mac-F22586C8)
    System uptime in nanoseconds: 4567640256295
    last loaded kext at 291508757115: com.apple.filesystems.msdosfs          1.8 (addr 0xffffff7f9fbc1000, size 65536)
    last unloaded kext at 352521325148: com.apple.filesystems.msdosfs          1.8 (addr 0xffffff7f9fbc1000, size 57344)
    loaded kexts:
    com.apple.filesystems.smbfs          1.8
    com.apple.filesystems.udf          2.3
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.iokit.IOBluetoothSerialManager          4.0.9f33
    com.apple.driver.AudioAUUC          1.60
    com.apple.filesystems.autofs          3.0
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.driver.AppleUpstreamUserClient          3.5.10
    com.apple.driver.AGPM          100.12.69
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AppleIntelHDGraphics          8.0.0
    com.apple.driver.AppleHDA          2.3.1f2
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.GeForce          8.0.0
    com.apple.driver.AppleMikeyDriver          2.3.1f2
    com.apple.driver.AppleSMCPDRC          1.0.0
    com.apple.iokit.AppleBCM5701Ethernet          3.2.5b3
    com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport          4.0.9f33
    com.apple.driver.AppleSMCLMU          2.0.2d0
    com.apple.driver.AirPort.Brcm4331          602.15.22
    com.apple.driver.ApplePolicyControl          3.2.11
    com.apple.driver.AppleMuxControl          3.2.11
    com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleIntelHDGraphicsFB          8.0.0
    com.apple.driver.SMCMotionSensor          3.0.2d6
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.driver.AppleUSBTCButtons          235.4
    com.apple.driver.AppleUSBCardReader          3.1.0
    com.apple.driver.AppleIRController          320.15
    com.apple.driver.AppleUSBTCKeyboard          235.4
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          34
    com.apple.iokit.SCSITaskUserClient          3.5.1
    com.apple.driver.XsanFilter          404
    com.apple.driver.AppleUSBHub          5.2.5
    com.apple.iokit.IOAHCIBlockStorage          2.2.2
    com.apple.driver.AppleFWOHCI          4.9.6
    com.apple.driver.AppleUSBEHCI          5.4.0
    com.apple.driver.AppleAHCIPort          2.4.1
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleSmartBatteryManager          161.0.0
    com.apple.driver.AppleACPIButtons          1.6
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.6
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0
    com.apple.nke.applicationfirewall          4.0.39
    com.apple.security.quarantine          2
    com.apple.driver.AppleIntelCPUPowerManagement          196.0.0
    com.apple.iokit.IOSerialFamily          10.0.6
    com.apple.kext.triggers          1.0
    com.apple.iokit.IOSurface          86.0.3
    com.apple.driver.DspFuncLib          2.3.1f2
    com.apple.iokit.IOAudioFamily          1.8.9fc10
    com.apple.kext.OSvKernDSPLib          1.6
    com.apple.iokit.IOBluetoothFamily          4.0.9f33
    com.apple.iokit.IOEthernetAVBController          1.0.2b1
    com.apple.iokit.AppleBluetoothHCIControllerUSBTransport          4.0.9f33
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.driver.AppleHDAController          2.3.1f2
    com.apple.iokit.IOHDAFamily          2.3.1f2
    com.apple.iokit.IO80211Family          500.15
    com.apple.iokit.IONetworkingFamily          3.0
    com.apple.driver.AppleGraphicsControl          3.2.11
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.nvidia.nv50hal          8.0.0
    com.apple.NVDAResman          8.0.0
    com.apple.iokit.IONDRVSupport          2.3.5
    com.apple.driver.IOPlatformPluginLegacy          1.0.0
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.IOPlatformPluginFamily          5.2.0d16
    com.apple.driver.AppleSMC          3.1.4d2
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.iokit.IOGraphicsFamily          2.3.5
    com.apple.iokit.IOSCSIBlockCommandsDevice          3.5.1
    com.apple.iokit.IOUSBMassStorageClass          3.5.0
    com.apple.driver.AppleUSBMultitouch          235.7
    com.apple.iokit.IOUSBHIDDriver          5.2.5
    com.apple.driver.AppleUSBMergeNub          5.2.5
    com.apple.driver.AppleUSBComposite          5.2.5
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.5.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOAHCISerialATAPI          2.5.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.5.1
    com.apple.iokit.IOUSBUserClient          5.2.5
    com.apple.iokit.IOFireWireFamily          4.5.5
    com.apple.iokit.IOAHCIFamily          2.2.1
    com.apple.iokit.IOUSBFamily          5.4.0
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.8.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          220
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          344
    com.apple.iokit.IOStorageFamily          1.8
    com.apple.driver.AppleKeyStore          28.21
    com.apple.driver.AppleACPIPlatform          1.6
    com.apple.iokit.IOPCIFamily          2.7.2
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.corecrypto          1.0
    Model: MacBookPro6,2, BootROM MBP61.0057.B0F, 2 processors, Intel Core i7, 2.8 GHz, 8 GB, SMC 1.58f16
    Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
    Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 512 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x0198, 0x393930353432382D3030352E4130324C4620
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x0198, 0x393930353432382D3030352E4130324C4620
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.98.81.22)
    Bluetooth: Version 4.0.9f33 10885, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: ST9500325ASG, 500.11 GB
    Serial ATA Device: HL-DT-ST DVDRW  GS23N, 7.99 GB
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 2
    USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfa130000 / 5
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0237, 0xfa120000 / 4
    USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 3
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8218, 0xfa113000 / 6
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 4
    USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0xfd110000 / 3

    Welcome to the Apple Support Communities
    It looks like your NVIDIA graphic is damaged. If you need your computer now, you can fix the computer downloading gfxCardStatus and selecting the option to use only the integrated graphic, so that kernel panic won't appear anymore. Note that you won't be able to use the NVIDIA graphic, so the graphic performance may be worse than with this graphic.
    Of course, that's a temporary fix, because you should take the computer to an Apple Store as soon as possible to get the Mac repaired. As the NVIDIA graphic is not soldered, the repair won't be expensive

  • How to get Current Quarter and Fiscal Quarter for a Date - Fiscal Year starts from 1st April

    Hi, 
    I need to calculate current quarter and fiscal quarter in my Sql query.
    I have a column for DateTime Datatype. 
    I need to find out Current Quarter Name like Q12012, Q22012, Q32012, Q42012 and Fiscal Quarter Name as well.
    Now Fiacal Year starts from 1st April, and Current Quarter starts from 1st Jan.
    For Current Quarter of 2012
    Jan-Mar = Q12012
    Apr-Jun = Q22012
    Jul-Sep = Q32012
    Oct-Dec = Q42012
    For Fiscal Quarter of 2012 ( starts from 1st Apr, 2011 )
    Apr2011-Jun2011 = Q12012
    Jul2011-Sep2011 = Q22012
    Oct2011-Dec2011 = Q32012
    Jan2011-Mar2012 = Q42012
    means if its 1st April, 2012,
    its a new Fiacal Year 2013 so Fiacal Quarter Name should be Q12013
    and its Current Quarter Name should be Q22012
    Can you help me to calculate this in a select query for given dates?
    Thanks in advance, 
    Nirav

    This should do it..
    Select
    FORMAT(datepart(quarter,getdate()),'Q#')+FORMAT(getdate(),'yyyy')

  • Calendar year start

    Hi,
    can somebody please tell me in which table to look for the
    calendar year start and end dates??
    Also please tell me where to look in the application also
    thanks a lot
    --kumar                                                                                                                                                                                                                                                                                                                                                                               

    Hi jansi, thanks for the reply.
    So first_period_end_date is the column in the table pay_payrolls_f which defines the calendar year end date.
    So can you tell me which is the calendar year start date.
    Thank you.
    --kumar                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Fund Center Z001 does not exist in FM area and fiscal year 20.01.2010

    Dear Expert,
    We have activated Funds Managment in quailty Client. but when ever we are trying to create PO below error message is coming:-
    Fund Center Z001 does not exist in FM area and fiscal year 20.01.2010
    Message No-F6580
    Also when ever we are trying to post an FI document the same error message is coming.
    Please advise with T-Code.
    Regards,
    Alok

    Dear Mr Srinu,
    The Z001 problem is solved by creating a fund centre using FMSA. Now while doing the shipment cost below error message is coming:-
    1.Account Assinment to Commitment Item not supported with this GL account. Message no-ME032
    2. No Funds center entered /derived in item 00010(1020/302401/)
    Pl help,
    Regards,
    Alok

  • The system could not calculate the fiscal year start or finish date message

    While running the transaction FMO1 and FMOA in funds management we have confronted with the following problem.
    Message no. FI 500
    The system could not calculate the fiscal year start or finish date.
    WE are using year dependent fiscal year and are implementing Funds Management for the first time.
    SAP Version – 4.0 B
    Priority – Urgent
    For the same problem in Version 4.5 and 4.6 there is a note number 213713 available on service.sap.com.

    No, there is no bug.
    Those activities that have asterisks (Stars) next to their start or finish dates (despite having no constraints) have "External Early Start" or "External Late Finish" dates, respectively, assigned to them. These dates get imported with XER and represent links to activities of those projects that are not in your database but in the external database where the XER originated from.
    To remove, filter out all such activities (with stars) and delete their "External" dates. However, be aware that Start or Finish dates of such activities might change if you delete theire External dates. If getting rid of asterisks does alter your schedule, ask the person who sent you the XER to confirm start/finish dates of all such (starred) activiites.
    Cheers

  • Micosoft Office Starter Edition 2010

    I purchased an HP Pavilion Elite HPE-360z desktop PC with Windows 7 Home Premium 64-bit back in 2010.
    My PC was purchased with Microsoft Office Starter Edition 2010 software included.
    Today, Microsoft Window did their last update I can no logner access the above Microsoft software without a 25 digit Product Key Number. Where can I find this Product Key Number?
    This question was solved.
    View Solution.

    The HP link for How to Repair, Uninstall and Reinstall Microsoft Office Starter 2010
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c02981221
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • ^How to show difference between sales in year 2009 and 2010

    Hi experts,
    I am facing a problem in a BEx Query. I have to show the difference between the sales of two years. Let me be more specific..
    I only have one keyfigure sales and only one characteristic year and I need the column difference.
    year      sales      difference
    2009      5000      -
    2010      8000      3000
    2011      9000      1000
    Please can anybody explain me how to get this.
    Many thanks in advance
    Peter

    Hi Peter
    There are various ways of getting the result you are going for.
    1. If you are 100% locked to the way the data has to be shown - you can use CELLS.
    a. start of making a strukture on year getting the years you need (in rows)
    b. generate a structure with 1 the key figure "sales" and second a formula which equals zero
    c. press Cells in your menubar and give all the combination of Sales and years a cell reference.
    d. Create formulas in the combination of year/Formula=0 and just make the formula this years sales - last years sales.
    This is a lot like Excel but also is'nt very handy for navigating and hence not a solution I normally would recomend
    If you are not on the other hand restricted to the way it has to look I would generate 3 columns with restricted key figures.
    1 with filter on Fiscal Year (0FISCYEAR) taking Current year and key figure sales
    2 With filter on Fiscal Year taking Current year and an offset of -1 and key figure sales
    3 Same and offset -2
    Last I would make 2 formulas giving me the differences.
    But as mentioned there are many ways of achieving your goal - maybe someone will have a better way
    Best Regards
    Xavier

  • Start Lync 2010 client on remote machine

    I have a couple of users who like to logout of their Lync 2010 client. They apparently think that they are being watched through this program.  This is a bit of a hassle since we use this program to see if users are sitting at their desk.
    I am trying to write a .bat file to automatically kill the communicator process and then restart the program on the remote machine.  I am having nothing but success with killing the communicator process using pskill.  When attempting to start the
    client using psexec, however, it will not work.  
    It will start a new communicator.exe process on the remote computer just fine.  It doesn't seem to actually start the program though.  There is no icon in the taskbar showing the program is running and communication with the user does not work
    as it still shows them offline.
    On the local machine (the one I am running from), I just use a bat file that calls another .bat file on the remote machine.  The .bat file on the remote machine kills all communicator.exe processes using pskill -t.  It then attempts to start a
    new communicator session using "start communicator /fromrunkey"  This will start a new communicator.exe process on the remote computer without any problems. That's all it will do though.
    Anybody have any suggestions on what I can do to make it actually launch the client on the remote computer?  I have exhausted all options I can come up with.  I would like to get this working so the users in question finally figure out that if
    they logout of Lync it is going to just start back up on them.  Hopefully after time they will catch on and stop logging out of the program.

    Have we tried giving the complete location of the communicator.exe
    "start c:/.../communicator.exe /fromrunkey
    Using the same script are you able to open Notepad.exe on the remote machine just for testing 
    for more info look at http://blogs.technet.com/b/rischwen/archive/2013/06/20/lync-2013-client-auto-start-registry-key.aspx
    Please remember, if you see a post that helped you please click ;Vote As Helpful&quot; and if it answered your question please click &quot;Mark As Answer&quot; Regards Edwin Anthony Joseph

  • Difference in Fiscal year start value under Asset history sheet

    Dear Experts,
    When I run the report S_ALR_87011990 for April and May the report should show the same FY start values. But you will notice that three classes of assets are showing different values. Z310, Z500 and Z510.
    What could be the reason for this difference in FY start value I am a new to this issue.
    Need your urgent assistance.
    Thanks & Regards,

    Hi Mahesh,
    First narrow down for what are all the assets there is some difference in FY start.
    Then check if any transactions have been posted in the month of May which affects Previous year balances like prior period adjustments etc.
    Hope by this way you could solve the issue.
    Regards,
    G.Sethuraman

  • How to know fiscal year start date?

    How can I know when is the starting date of the fiscal year of my company from the tables or FM? They told me it is April 1st. Can I get this information from any SAP tables? I just don't want to hardcode that in my report.
    Thank you very much.

    U can try the FM 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
    REPORT ZEXAMPLE.
    DATA: V_FIRST LIKE SY-DATUM,
          V_LAST LIKE SY-DATUM.
    PARAMETERS: P_GJAHR LIKE T009B-BDATJ,
                P_PERIV LIKE T009B-PERIV.
    CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
         EXPORTING
              I_GJAHR        = P_GJAHR
              I_PERIV        = P_PERIV
         IMPORTING
              E_FIRST_DAY    = V_FIRST
              E_LAST_DAY     = V_LAST
         EXCEPTIONS
              INPUT_FALSE    = 1
              T009_NOTFOUND  = 2
              T009B_NOTFOUND = 3
              OTHERS         = 4.
    IF SY-SUBRC EQ 0.
      WRITE:/ P_GJAHR, '\', P_PERIV,
            / 'FIRST DAY:', V_FIRST,
            / 'LAST DAY:', V_LAST.
    ELSE.
      WRITE:/ 'COULD NOT DETERMINE DATES FOR', P_GJAHR, P_PERIV.
    ENDIF.

  • First timeout, push retry and then succesfull connect?! Starting Outlook 2010 connect to Exchange 2013

    Hi!
    Some info:
    2x AD/DC Windows 2003 Native.
    Previous Exchange 2003 installed, but now cleanly as it gets uninstalled.
    Exchange 2013CU2v2 Aka Version 15.0 (Build 712.24)
    Office 2010 with Outlook 2010 (Latest SP, and WU)
    Outlook-prf configured for Outlook Anywhere. (i've also tried to configure manually, no difference)
    Exchange: SAN Cert. GUI requested from ECP. This one covers all possible host names the server can use. autodiscover, owa, mail, "netbios"-name. Self issued from the internal CA. CA distributed to clients with GPO. I get NO certificate warnings
    surfing to OWA, ECP.
    Exchange: ECP/Server/Outlook Anywhere; Auth set to NTLM (not Negotiate)
    Ping inside host names resolves to the Exchange server.
    Starting Outlook.exe with /rpcdiag show two connections for a while. One of the type catalog and one of the type redirect.
    Problem:
    When starting Outlook you see "Loading profile" for about 30-40 seconds. /rpcdiag show two connections CID "9","11"; SERVERNAME "---","[GUID]@thedomain", AUTH and ENCRYPT is empty.
    The the a dialog comes up that says that the server isn't available?!
    Clicking "Retry" makes Outlook connect as it should. Everything from there works like a charm! /rpcdiag windows show that it has connection as it should.
    Tried to click "Reconnect" in /rpcdiag. It also takes about 30 sec before it regains the conneciton. The part hanging there is the Type: Redirect.
    So, does anyone have a clue for why it doesn't work and then does?
    Can it be something wrong with the autodiscover?

    Hello,
    Do you mean the issue occurs when you select manually configure outlook exchange account or automatically configure outlook exchange account? If so, please make sure whether all users have the issue.
    I recommend you check if there exists redirection on your rpc virtual directory.
    I recommend you use "test e-mail autoconfiguration" tool to check if your autodiscover is correct.
    Besides, I recommend you to enable global and advanced logging for outlook to check RPC trace events.
    How to enable global and advanced logging for Outlook 2010 and Outlook 2013
    http://support.microsoft.com/kb/2260527
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • End Year , Start Year Problem!!

    Hi All
    Following is my requirement.
    A table XY has following data
    EMP_NAME      STARTYEAR          ENDYEAR
    ASD                    2013                        2015
    QWE                   2010                        2017
    Is there an approach/method to get the following output ?
    EMP_NAME     YEAR
    ASD                2013
    ASD                2014
    ASD                2015
    QWE               2010
    QWE               2011
    QWE               2012
    QWE               2013
    QWE               2014
    QWE               2015
    QWE               2016
    QWE               2017
    Please help. Simple(or complex ) queries would be helpful.
    Thanks in Advance
    Praneeth

    Recursive CTE?
    with xy as
      (select 'ASD' emp_name, 2013 start_year, 2015 end_year from dual union all
       select 'QWE' emp_name, 2010 start_year, 2017 end_year from dual
    ,t (emp_name
        ,yr
        ,end_year
        )as
      (select emp_name
             ,start_year
             ,end_year
       from   xy
       union all
       select emp_name
             ,yr+1
             ,end_year
       from   t
       where  yr <end_year
    select emp_name
          ,yr
    from t
    order by 1,2;
    EMP         YR
    ASD       2013
    ASD       2014
    ASD       2015
    QWE       2010
    QWE       2011
    QWE       2012
    QWE       2013
    QWE       2014
    QWE       2015
    QWE       2016
    QWE       2017

  • Problem while starting outlook 2010 - standard

    on  starting outlook, the outlook is frequently verifying data integrity.it takes about an hour till the verification gets over.
    This problem has started recently.
    Kindly suggest a solution.
    Best Regards

    Hi,
    Which type of email account are you using? POP3, IMAP or Exchange?
    Based on my research, this issue may be caused by the Outlook data file corruption. Please try to close all the custom pst-file opened in Outlook and then use the Inbox Repair Tool (Scanpst.exe) to scan and repair your Outlook data file to check
    the result. If you are using an ost-file, just rename the ost file and restart Outlook to sync a new one. See:
    http://office.microsoft.com/en-in/outlook-help/repair-outlook-data-files-pst-and-ost-HA010354964.aspx
    If above doesn't fix the issue, please test it with a new mail profile (just create a new profile, don't delete the old one. you can switch back again if this issue is not related to the mail profile):
    http://support2.microsoft.com/kb/829918
    Please let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for

  • I've just downloaded 'Aperture' and I'm still unable to open iPhoto?

    Hi, I have just downloaded 'Aperture' at a cost of £55.00! as I was unable to open up 'iphoto'. I now have Apeture latest version available, 3.5.1. I have 'iphoto 9.5.1' When I click on iphoto, I get this message: To open this Aperture library in iPh

  • I got a new ipod and i want to play it on my computer but its not letting me, how do i change that?

    So I got my iPod stolen and I just got a new one but when i plug it in the computer, i get the libary but if I click on music in device, its not letting me my songs from there and its not letting me add music and I want to know why and how can I chan

  • SQL command running into error: ora-01489

    Hello everyone, i have created a query as shown below. When i am trying to run this query on test server using TOAD it executes without any error. The same query i am trying to copy and paste on TOAD for my production server and it gives me an error:

  • Difference between oracle Data Guard and Replication

    Hello Friends, I would like to know the main difference between oracle replication and data guard. Theoretically both are same then where is the difference. Can replication or dataguard be configured in a single PC. Thanks

  • How to change table border color in DW CS6

    I need to know how to change the color of the border around my tables in Dreamweaver CS6. I saw a article on how to change it on http://forums.adobe.com/message/4451812, but i really couldnt follow because im just starting out using dreamweaver and i