Forum Replies Created

Viewing 15 posts - 1,096 through 1,110 (of 7,191 total)

  • RE: S?QL Server using 97% of RAM.

    (1) Make sure you set max server memory such that there is sufficient memory left for the operating system and any other applications or SQL Server components on the server

  • RE: Differential backup restore

    (1) Back up the transaction log
    (2) Restore the Full from 05/11 with no recovery
    (3) Restore the differential from 11/11 with no recovery
    (4) Restore all transaction log backups...

  • RE: OLA Maintence JOb (index defrag) stuck

    Use sp_whoisactive to see what statement is currently running.

    John

  • RE: Rounding to the nearest 15 seconds

    Or this - it has fewer moving parts and seems to run a little bit faster than Eirikur's.

    SELECT
        DATEADD(second,-DATEPART(second,create_date)%15,DATEADD(ms,-DATEPART(ms,create_date),create_date))
    FROM sys.all_objects

    John

  • RE: How OVER clause works ?

    Sam

    It's taking the maximum value of c1 over the current row and the next five, ordered by id.  So for row 1, it will show the maximum value...

  • RE: Date format check

    sqlenthu 89358 - Sunday, November 12, 2017 10:29 PM

    Hello all,
    I have few records in a table. And I want to check if...

  • RE: what is causing tempdb to become full

    I just typed the title of your topic into my favourite search engine, and it provided lots of results that I think would answer your question.  Try it yourself.

  • RE: Difference in value

    Thom A - Monday, November 13, 2017 3:01 AM

    Use a CTE and ROW_NUMBER(), ordered by Date Descending. Then only return the rows...

  • RE: Fill Factor

    In a clustered or a non-clustered index, if there is not sufficient space on a page to insert a row, a page split occurs.

    John

  • RE: Fill Factor

    In a heap, new rows are inserted at the end.  Is that what you mean?

    John

  • RE: Fill Factor

    If the table has a clustered index, that index will have its own fill factor, so that will, in effect, be the fill factor for the table.  If the table...

  • RE: tsql requirement

    SELECT
         DENSE_RANK() OVER (ORDER BY C1) AS Txnid
    ,    id
    ,    c1
    ,    c2
    ,    c3
    FROM dbo.test
    WHERE id < 7;

    John

  • RE: TransactionLog. VLF Fragmentation.

    dmbsseller - Thursday, November 9, 2017 10:58 PM

    PS:  I  did not do Transaction Log Backup during Sunday, maybe problem in this.

    Definitely...

  • RE: t-SQL Solution to backup and restore

    river1 - Thursday, November 9, 2017 2:58 AM

    Thank you for your answer John, but if this restore is going...

  • RE: SSIS Package - MySQL Error (Reading from the stream has failed) with SQL Server Agent

    Well, something's not right, is it?  You may need to speak to your admins, whoever they are, and ask them to be a little more specific and tell you what rights...

Viewing 15 posts - 1,096 through 1,110 (of 7,191 total)