Forum Replies Created

Viewing 15 posts - 1,591 through 1,605 (of 2,648 total)

  • Reply To: Disk write spikes at 15 min intervals

    We had similar peaks at regular intervals, can't remember the exact interval, it might have been about 15 mins.

    I think it might be to do with having a clustered pair...

  • Reply To: Incrementally loading a very large Dimension table - Performance problems

    TheComedian wrote:

    Can't you just determine which rows are to be inserted/updated by a JOIN during the insert/update?  Or am I missing something?  

    I think you want an UPDATE followed...

  • Reply To: Time difference

    Jeff Moden wrote:

    Unless I'm misreading the given solution, it won't properly calculate the time difference correctly for entries that span a date boundary.   This is one of the many reasons...

  • Reply To: Convert DATETIME to a date in ISO format

    Instead of 112 you need 105

    SELECT CONVERT(DATE,MAX(dato),105) FROM dbo.dutyrostershift WHERE employeeid = 11

    https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2017

  • Reply To: Time difference

    You should check how to post questions with consumable data before posting a question:

    https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help

    ;WITH CTE AS
    (
    SELECT * FROM (VALUES
    (34,1,1003,convert(time,'06:43:00'),convert(date,'01.04.2019'),101),
    ...
  • Reply To: Incrementally loading a very large Dimension table - Performance problems

    Change the MERGE to be an UPDATE followed by an INSERT. This will probably give you a 40% performance improvement.

    Check if the merge is updating any indexes, as this could...

  • Reply To: Finding duplicated values in multiple columns (Not the one we all know of)

    Declare @TheTable table (ID int, V1 varchar(1), V2 varchar(2), V3 varchar(1), V4 varchar(1))
    Insert into @TheTable values (1, 'A', NULL, NULL, NULL)
    Insert into @TheTable values (2, 'B', NULL,...
  • RE: More efficient delete sql

    olibbhq - Tuesday, March 26, 2019 9:47 AM

    Hi, thanks for your help in advance. Is there a way to make this query...

  • RE: Schedule Report After Data Is Processed

    RonMexico - Monday, March 25, 2019 10:10 AM

    So you are saying if the stored procedure should run at some point between 6...

  • RE: Schedule Report After Data Is Processed

    RonMexico - Monday, March 25, 2019 8:37 AM

    I'm new to SSRS and I'm trying to figure out how to have a report...

  • RE: Limit Size of Tables

    RonMexico - Monday, March 25, 2019 6:52 AM

    I'm looking for a way to put a cap on the size of newly created...

  • RE: A question about the EXISTS operator

    It will exist with a count of zero.
    You need to replace 'COUNT(*)' with '*'

  • RE: Are the posted questions getting worse?

    below86 - Friday, March 22, 2019 11:10 AM

    Just need a place to vent this... I was searching for a room on a...

  • RE: Calculation at each point in time

    anikeh - Friday, March 22, 2019 9:57 AM

    Because i am adding up the rates. I thought it would be easy to know...

  • RE: Calculation at each point in time

    anikeh - Friday, March 22, 2019 9:40 AM

    hi Jonathan

    I am looking for an output like this

    Viewing 15 posts - 1,591 through 1,605 (of 2,648 total)