Forum Replies Created

Viewing 15 posts - 136 through 150 (of 541 total)

  • RE: Group By WEEK

    Thanks for the swift response + link.

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Identify Products where Quantity Decimal Value is > 0

    Thanks guys. Amit your example worked a treat.

    Many Thanks,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Export to Excel

    Hi Luke, some good points. I think scheduling is the best option. His machine hangs off a 8 port GB switch (shared) that patches into a single floor port that...

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Convert query containing 3 CTE's into Stored Procedure

    Gianluca that works fine.

    Many thanks for your help.

    Kind Regards,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Convert query containing 3 CTE's into Stored Procedure

    Hi. I have attached code2 (stored procedure) which produces the following errors:

    Msg 102, Level 15, State 1, Procedure MyProc, Line 2

    Incorrect syntax near '('.

    Msg 137, Level 15, State 2, Procedure...

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Convert query containing 3 CTE's into Stored Procedure

    Hi, I did kinda try that. I have played with a few variations.

    SET ANSI_NULLS ON

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE PROCEDURE [dbo].[MyProc]

    AS

    BEGIN

    SET NOCOUNT ON;

    DECLARE @DueDate smalldatetime

    DECLARE @From smalldatetime

    DECLARE...

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Syntax Error

    OK I have changed

    IIF((SUM(Fields!DemandMinutes.Value) - SUM(Fields!TimeBooked.Value) / (Fields!ActivityCentreCapacity.Value) *100) <0

    to

    IIF((SUM(Fields!DemandMinutes.Value) - SUM(Fields!TimeBooked.Value)<0

    Thanks,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Syntax Error

    Hi Wayne. I have come up with:

    =ROUND(IIF(SUM(Fields!DemandMinutes.Value) - SUM(Fields!TimeBooked.Value) >= Fields!ActivityCentreCapacity.Value,100,IIF((SUM(Fields!DemandMinutes.Value) - SUM(Fields!TimeBooked.Value) / (Fields!ActivityCentreCapacity.Value) *100) <0,0,SUM(Fields!DemandMinutes.Value - Fields!TimeBooked.Value) / (Fields!ActivityCentreCapacity.Value)*100)),2)

    Logic:

    The activity centre value is fixed for each activity...

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Struggling to calculate a percenatge value

    Thanks Scott. Regards the VB yes this part has been done in visual studio (main code T-SQL in the dataset) so fair point.

    Thanks,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: If Date value is less than current date set date value to today

    Great work guys, I really appreciate your time and efforts.

    Many Thanks,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: If Date value is less than current date set date value to today

    Hi. I can understand why it doesn't make sense. The query is destined for a report to mirror information returned for production scheduling information. Production scheduling works on the wip...

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: If Date value is less than current date set date value to today

    OK, I have come up with:

    DECLARE @DueDate smalldatetime

    SET @DueDate = GETDATE();

    SELECT ..............

    CASE

    WHEN DueDate < GETDATE() THEN @DueDate

    ELSE DueDate

    END AS DueDate,

    If there is a better way please let me know.

    Thanks,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Failure sending mail: An error has occurred during report processing

    Problem solved (Luke made a comment in a PM that made me think). An Index Rebuild ran at the same time as the report. I moved the report schedule and...

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Having trouble calculating a percentage

    Thanks for posting.

    Kind Regards,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

  • RE: Having trouble calculating a percentage

    If I remove CAST all is OK.

    Thanks,

    Phil.

    -------------------------------------------------------------------------------------
    A neutron walks into a bar. "I'd like a beer" he says. The bartender promptly serves up a beer. "How much will that be?" asks the neutron. "For you?" replies the bartender, "no charge."

    Two hydrogen atoms walk into a bar. One says, 'I think I've lost an electron.' The other says 'Are you sure?' The first says, 'Yes, I'm positive... '

    Tommy Cooper

Viewing 15 posts - 136 through 150 (of 541 total)