Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: Current Running Job Schedule Id or Name

    Hi, i also facing this problem, is there any solution for this ?

  • RE: Invoked Schedule Id of the Job : Urgent!

    Hi, i also facing this problem, is there any solution for this ?

  • RE: New Cluster: Fail Over Test Breaks Connections

    Perry Whittle (3/6/2012)


    its going to depend how you setup the 2nd NIC on each node

    how do i setup the second network to fulfill those expected result ?

    is it to set...

  • RE: New Cluster: Fail Over Test Breaks Connections

    Hi,

    i just set up a 2 node failover clustering for SQL SERVER 2008 on Windows Server 2008 R2 Enterprise Edition,

    previously i set up using 1 NIC on each...

  • RE: compare data for each date

    finally after trying..

    i answer my own question

    here is the solution

    DECLARE @StartNewDate DATE

    DECLARE @EndDate DATE

    DECLARE @StartHistoryDate DATE

    DECLARE @EndHistoryDate DATE

    SELECT @StartNewDate = '01-SEP-2011'

    SELECT @EndDate = '05-OCT-2011'

    SELECT @StartHistoryDate = '01-AUG-2011'

    SELECT @EndHistoryDate = '05-SEP-2011'

    SELECT

    ...

  • RE: group and split the overlapped date

    Mark-101232 (6/14/2011)


    Seems to work with your data, also '30-SEP-2012' '31-DEC-2012' is contract 1 and 2, not 2 and 3.

    oh yeah , you are right mark, it should be for contract...

  • RE: group and split the overlapped date

    what i have done is this :

    SELECT distinct

    MC.MeterID,

    MC.ContractID,

    Common.ufnToDateDisplay(cast(Common.ufnGetMaxOfTwoValues( MC.Startdate, MC2.Startdate)as DATE)),

    Common.ufnToDateDisplay(cast(Common.ufnGetMinOfTwoValues(MC.Enddate,MC2.Enddate)as DATE))

    FROM

    @MeterContract MC

    join @MeterContract MC2

    on MC.MeterID = MC2.MeterID

    and MC.ContractID <> MC2.ContractID

    and ( MC.Startdate between MC2.Startdate and MC2.Enddate

    or MC.Enddate between...

Viewing 7 posts - 1 through 7 (of 7 total)