Forum Replies Created

Viewing 15 posts - 4,006 through 4,020 (of 59,067 total)

  • Reply To: non-prod database data scrambling

    sqlfriend wrote:

    Thank you both.

    The product is good, but it is expensive. Not sure if we can get approval to have budget for that.

    Any other recommendations?

    Thanks

    It'll be cheaper that writing your...

  • Reply To: 20 Temp table tracking

    You're going to have to write some code that checks sys.tables for names using wild cards and check their "create_date" for the date and time they were created.  If that...

  • Reply To: PLE & Tempdb spills

    If, however, it's ALWAYS in the proverbial toilet, THAT can be an indication of a much larger problem.

    It may not actually show up as "spills", either.

  • Reply To: Suspended session : Job is taking very long time to complete

    DBA wrote:

    A cte query which joins couple of tables and then updates is in suspended state. Is it possible it is blocking itself?

    SP who is active shows NULL in the...

  • Reply To: How to calculate delta in timestamp

    ScottPletcher wrote:

    It doesn't matter if the 'on' is followed by 'on' or 'off', just add up all the 'on' times.

    It actually does matter because two on times without an off...

  • Reply To: Knowing When to Respond

    From the Article:


    "Without a baseline, every issue encountered could be considered normal and therefore not require any additional intervention."

    Another way to look at it is "Without a baseline, every non-issue...

  • Reply To: Too many .ldf

    ramyours2003 wrote:

    what is the impact of too many .ldf''s in a database?

    To be honest,  there's no impact other than maybe on your reputation if someone else finds out... that's also...

  • Reply To: Reusing Tools for New Purposes

    qbrt wrote:

    Jeff Moden wrote:

    Such workarounds are absolutely stupid.  Not because the workaround itself is stupid but, rather, because Microsoft has made such a workaround NECESSARY. .......

    F@#$%NG EPIC!

     

    BWAAAAA-HAAAA!!!  At least I know...

  • Reply To: How to reclaim space from a table

    Before you go rebuilding the table to recover the space, at least find out why there's so much unused space in the table.  Is it due to forwarded rows or...

  • Reply To: SUM(CAST(....

    2Tall wrote:

    Thanks for your response Jeff.  Glad to see you are still going strong. I will have a play. Keep up the great work.

    Kind Regards,

    Phil.

    It's been a while since I've...

  • Reply To: Reusing Tools for New Purposes

    below86 wrote:

    Jeff Moden wrote:

    ...  Using end of month dates is actually a WORST PRACTICE!  ...

    I agree with a lot of what you said Jeff, but I can't agree here.   I've...

  • Reply To: sql query help

    Again... if you post some sample data in a readily consumable format, we can help a whole lot more.  See the first link in my signature line below for one...

  • Reply To: sql query help

    sqlenthu 89358 wrote:

    I have gone through the two parts of Jeff's articles. But I still couldn't figure out the solution. here's my sample data:

    businessday category itemno value
    2022-01-01 xyz...
  • Reply To: SUM(CAST(....

    2Tall wrote:

    Thank you for your replies.

    I added: CAST(FileSize AS decimal(35,2)) AS FileSize,

    +

    WHERE Domain = @Domain AND convert(bigint, Filesize) > 50000

    That worked so many thanks.

    One last question...

    --I added
    ROUND(SUM(CAST([FileSize]...
  • Reply To: Restore is not progressing at all . Please kindly help

    WhiteLotus wrote:

    Hi All ,

    I need to restore database 1.2 TB .. bak files are on network share drive .

    the time i run restore .. it shows no progress . Status...

Viewing 15 posts - 4,006 through 4,020 (of 59,067 total)