Forum Replies Created

Viewing 15 posts - 56,956 through 56,970 (of 59,067 total)

  • RE: Day Range Caluculations

    Same as above but single column output...

    DECLARE @StartDate DATETIME

    DECLARE @EndDate DATETIME

        SET @StartDate = '01/01/2006'

        SET @EndDate = '10/02/2007'

    PRINT DATEDIFF(dd,@StartDate,@EndDate)+1

     SELECT STR(Number*90+1,4)

          + ' -'

          + STR(CASE

                   ...

  • RE: Day Range Caluculations

    Set based solution... substitute a tally table for spt_Values if you have one...

    DECLARE @StartDate DATETIME

    DECLARE @EndDate DATETIME

        SET @StartDate = '01/01/2006'

        SET @EndDate = '10/02/2007'

      PRINT DATEDIFF(dd,@StartDate,@EndDate)+1 --Just...

  • RE: JOIN screwing things up.

    Nope... not the NULL thing.  My explanation is probably going to sound a little "dated" because I gave up the "GUI world" about 5 years ago when my boss (actually,...

  • RE: Time Difference

    John,

    What is the data type of the column you are calling "TimeStamp"?

  • RE: xp_cmdshell not working with FTP on server

    Where is the "E" drive... on the server or on your local drive?  If it's not on the server, you must use the UNC name back to the path where...

  • RE: select for update vs. UPDLOCK

    Post your cursor and let's see if we can help you get rid of it because it has the biggest and worst impact both on performance and resources.

  • RE: Reading txt file then creating new table

    I might MOVE the file to an "archive" directory, but I wouldn't delete it until I was sure the server had gone through a backup cycle.

  • RE: SQL Server 2000 SP 4 issue with query

    Heh... well done... I'm thinking that if SP4 is so tough on cursors, then I like it a lot

  • RE: JOIN screwing things up.

    FYI... the WHERE 1=1 thing is what a lot of GUI programmers do when writing embedded SQL with dynamic WHERE clauses...  they will always have a valid WHERE clause and they...

  • RE: Question about Execution plan and...hardware??

    Another couple o' things to check...

    1. Are the boxes running the same version/service pack level of Windows Server?
    2. Are the boxes running the same EDITION/service pack level of SQL Server (SQL Server Standard...
  • RE: Finding values with cents...

    I agree with that!  The looping has got to interfere with the overall performance.

    Anyway, Michael... I have a question about your wonderful F_TABLE_NUMBER_RANGE  function... Since it's very fast (Surprisingly so! ...

  • RE: Putting Unit Tests to Work

    I'm not a .Net guy either... that's why I just right click on a proc in QA and select [OPEN].  A windows opens with all the parameters available which can...

  • RE: Finding the last day of the PERIOD

    Obviously...

    Like you said at the end of your last post, I'm still trying to get Lindsay to correctly identify the problem

  • RE: Finding the last day of the PERIOD

    Yep... that's what I was talking about... but that's week 14?  Maybe I missed it somewhere but you still haven't given us all the info we need... like when the...

  • RE: loop without cursor?

    But it won't always unless you have something that identifies the order of the task descriptions....

Viewing 15 posts - 56,956 through 56,970 (of 59,067 total)