Forum Replies Created

Viewing 15 posts - 23,596 through 23,610 (of 26,490 total)

  • RE: Out-of-Range Date Value Error

    Your problem is here:

    SET @dRetVal =...

  • RE: Update with Join?

    Without testing, this should work.

    UPDATE TableA SET

    MeetingID = B.MeetingID

    FROM

    TableA AS A

    INNER JOIN UniqueBookings AS B

    ...

  • RE: Update with Join?

    Could you report with corrected example? I'm having a Missouri moment and you need to Show Me.

    I think it should be easier if it is reversed.

  • RE: Find DDL time

    psangeetha (11/21/2008)


    Hi all,

    Below is the query I'm using to find the status of the objects,

    select name,status,refdate from sysobjects

    I know the refdate in this table is the date the...

  • RE: Update with Join?

    Not sure, but give this a try:

    with UniqueBookings (

    MeetingID,

    BookingID

    ) as (

    select distinct

    MeetingID,

    BookingID

    from

    ...

  • RE: DATEADD Function not working like I am expecting

    More work for you. Would you please explain the PMT_FREQ, PMT_FREQ_MULT, any gotcha's we may need to know (like no payments due on Saturdays or Sundays, or official holidays).

    I'd...

  • RE: Function that finds Sundays

    andrewd.smith (11/21/2008)


    select getdate() + 7 - Datepart(dw, getdate())

    This only works if @@DATEFIRST = 1 (Monday)

    An expression that returns the date of the Sunday in the current week regardless...

  • RE: Function that finds Sundays

    Directed more to the OP, but based on your suggestion, which didn't work on my servers here at work. It returns the Saturday following the given date, not Sunday....

  • RE: Function that finds Sundays

    Glen (11/21/2008)


    select getdate() + 7 - Datepart(dw, getdate())

    Also, on my server here at work, the above returns tomorrow (Saturday), not a Sunday.

  • RE: Function that finds Sundays

    Glen (11/21/2008)


    select getdate() + 7 - Datepart(dw, getdate())

    Given 2008-11-19 which Sunday do you want, 2008-11-16 or 2008-11-23?

  • RE: DATEADD Function not working like I am expecting

    Yes, I got the image via PM. You may want to see if you can get it into this forum thread so others can see it. If needed,...

  • RE: DATEADD Function not working like I am expecting

    john.steinbeck (11/21/2008)


    Ok, row 85 is a new ID, 101 and 102 are new ID's and so is 103 ending @ 111...

    when i get the data, it's not ballooned out like...

  • RE: Function that finds Sundays

    marty.seed (11/21/2008)


    Hey there group,

    I need to build a function that takes in a date and then returns the corresponding Sunday to that date.

    Any ideas?

    Marty

    Could you please provide some examples...

  • RE: Stock Ledger - Without cursor

    andrewd.smith (11/21/2008)


    This is one of those situations where using a cursor is the more natural approach and will probably be more efficient than any possible single query approach.

    Andrew Smith

    Not true!...

  • RE: ANNOYED: SSMS messes with formatted scripts

    Different people may use different settings for tabs. I set up SSMS to replace tabs with spaces which eliminates this as an issue with my formatted scripts.

Viewing 15 posts - 23,596 through 23,610 (of 26,490 total)