Forum Replies Created

Viewing 15 posts - 2,566 through 2,580 (of 2,894 total)

  • RE: Conversion failed when converting datetime from character string - Error....

    DP-721271 (7/6/2010)


    ...

    /* Tried the following as well*/

    IF @vchtstsirdt IS NULL

    SET @vchtstsirdt = CONVERT(datetime, ISNULL(@vchtstsirdt,''))

    Else

    SET @vchtstsirdt = CONVERT(datetime, @vchtstsirdt)

    ...

    That is also code noodles, but with different result.

    NULL values will be...

  • RE: Linked server limitation?

    xzd000 (7/7/2010)


    Does the usage of linked server have any limitation?

    Yes it does.

    xzd000 (7/7/2010)


    For eg, on insert,delete,update to the linked server?

    There are some.

    xzd000 (7/7/2010)


    Hi

    Some command that's not possible on...

  • RE: What is the Point in Updating the PK in an UPDATE Stamenet

    David Portas (7/6/2010)


    ...

    Is that the real statement actually being issued or did you simplify it by substituting literal values where there would have been variables? Assuming there are variables driving...

  • RE: Combining SELECT query, JOIN table with SUBSTRING

    1. Please click the link in my signature, it will explain how t post your question to get timely answers

    2. Also, could you please explain what rules for joining betwen...

  • RE: Calculate Working Hour Query

    I am off to Italy for very long weekend tomorrow, so I should care less 😀

    But this is quite a nice puzzle, which I am going to have a look...

  • RE: CTE - Avoiding the cursor

    Brandie Tarvin (7/6/2010)


    First of all, "she", not he. @=)

    Secondly, I need random numbers that do not repeat. I'm not limited to a range, but I need to make sure they...

  • RE: Calculate Working Hour Query

    scott.pletcher (7/6/2010)


    If by "run it for Tuesday", then you mean "ignore Wednesday's" rows in the query, then no, it still won't, because the count of clock-in will not match the...

  • RE: Calculate Working Hour Query

    Scott, could you please advise where you found that I have "tricked" the test data?

    For ecah employee there is a record with LOGIN time before record with OUT time!

    You are...

  • RE: Calculate Working Hour Query

    As I have mentioned in my first post, that my query will only take in count "closed" periods.

    That is why I have not added filter for time period, as new...

  • RE: Calculate Working Hour Query

    scott.pletcher (7/6/2010)


    That would have NO effect on my query. As long as the proper pairs were present.

    I've done this before on time systems. You really don't have to...

  • RE: Loop, Cursor or both?

    There are many different ways to do it with SSIS. It depends really on your preference and experience in it. SSIS is a tool designed for this kind of tasks....

  • RE: Calculate Working Hour Query

    scott.pletcher (7/6/2010)


    You will see that your query will return strange results as to make it work, COUNT should be changed to SUM in the HAVING clause.

    Yes, SUM() should be used...

  • RE: What is the size limit on a database to do mirroring?

    There is no database size limitation for mirroring. For your 32-bit system will be limitation of maximum of about 10 databases per server instance.

    All restrictions can be found in BoL:

    http://technet.microsoft.com/en-us/library/ms366349(SQL.90).aspx

  • RE: Calculate Working Hour Query

    doobya (7/5/2010)


    the primary function of the IsPaused column is "is this session paused"

    the secondary function of the IsPaused column is "if this session is paused - when was it paused"

    that...

  • RE: a syntax error

    FREETEXT is not UDF, it is in-build predicate. It cannot be used in such context.

    You have used it similar to the following:

    ...

    CASE WHEN ColA>ColB THEN ColC ELSE ColD>ColE

    ...

    While...

Viewing 15 posts - 2,566 through 2,580 (of 2,894 total)