Forum Replies Created

Viewing 15 posts - 316 through 330 (of 549 total)

  • RE: Where is the article

    Now I see the full article. I really can't explain it. At home I use ie6 but in the office I use ie7. Thus I quickly connected to my workstation...

  • RE: Adding workdays

    Tomm Carr (10/26/2007)


    Michael Meierruth (10/26/2007)


    If you want an answer to that, see my spec a few pages back. It makes sense out of adding a day to Monday that gives...

  • RE: Adding workdays

    Tomm Carr (10/26/2007)

    If you say you want to add one work day to Monday and get Monday back as an answer, show me on a calendar how this makes sense.

    If...

  • RE: Adding workdays

    Tomm Carr (10/25/2007)


    Here is my (hopefully) final submission.

    Tomm,

    I have checked it out and it seems to work just fine for everything I threw at it. Even though I'm not happy...

  • RE: Adding workdays

    By the way, here is another simple way to eliminate the datepart headache:

    -- capture these for known dates as they may vary based on SET DATEFIRST and who knows what...

  • RE: Adding workdays

    Sergiy (10/24/2007)


    Hmm...

    Actually it was simply an answer on the previous post.

    The one from Michael Meierruth.

    :ermm:

    Sergiy,

    When the start date is a workday it works fine. When the start date is a...

  • RE: Adding workdays

    I tried

    select dbo.fnAddWeekdays_Sergiy('20071017',4) and get '20071022'

    select dbo.fnAddWeekdays_Sergiy('20071017',5) and get '20071024'

    Can't remember if Sergiy's intention was to include the start date or not, but one of these two has got to...

  • RE: Adding workdays

    The concept of calculating the number of work days between two dates and adding work days to a date are based on the concept of a start date and an...

  • RE: Adding workdays

    Sergiy (10/22/2007)


    if DatePart( dw, @StartDate ) = 1 -- Sunday

    On my server it means Monday, not Sunday.

    I think that's why...

  • RE: Adding workdays

    Matt Miller (10/22/2007)

    When in the eidtor window - pick the CODE IFCODE, and paste your code between the two tags.

    Still won't paginate it, but that's what puts the gray background...

  • RE: Adding workdays

    How to you select/copy/paste the sample code in the gray background areas?

    When I do this I don't get any line breaks.

  • RE: Please fix the word wrap

    In the past I too was suffering from the wide presentation in my Lotus Notes mail client. It sometimes returned to normal but then became wide again, sometimes different widths...

  • RE: get nextid for non-identity column

    I think the OP wants the functionality of an identity column without an identity column. I strongly recommend to convert the table via 'insert into select...' preceeded by 'set identity_insert on table-name'.

    An alternative is...

  • RE: Is CODE a reserved word: SQL 2000?

    I ran

    create table t(code varchar(10))

    select code from t

    through a jdbc driver without any problems.

    However, when I did

    select code2 from t

    I get your error message. Thus 'code' doesn't seem to be...

  • RE: How to get a variable resultset

    Well, just counting the number of node separators should give you the sequence length. Load this function and do

    select sequ,dbo.seqlen(sequ) from sequences

    if exists (select name from sysobjects where name='seqlen' and...

Viewing 15 posts - 316 through 330 (of 549 total)