Forum Replies Created

Viewing 15 posts - 166 through 180 (of 497 total)

  • RE: Free space after rows removed

    Basically what is happening is that your deleted records become ghost records. This is a performance feature to speed up the delete and rollbacks if needed. Once the record is...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Problem with decimal output

    We have tired to give you hints, but you need to give us the create table statement and the sample data if you want a better answer. Also your expected...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Problem with decimal output

    Read my post again about using ROUND. Here is a sample:select round('7.88528800',2)

    select round('3.06978700',2)

    select round('1.78070800',2)

    select round('1.67984500',2)

    select round('1.59402600',2)

    select round('1.36468000',2)

    select round('1.09013200',2)

    select round('.96727700',2)

    select round('.91552000',2)

    select round('.82464700',2)

    select round('.80762800',2)



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: GROUP BY Result of Sub-Query

    mark.dungey 56406 (2/20/2014)


    select MAX(a.InvoiceId),c.SoldTo,(select 'CustomerOrderNumber1' = CASE WHEN c.SoldTo = 'G09905' THEN 'UN013'

    WHEN c.SoldTo = 'G09929' and id.CustomerOrderNumber != '' THEN 'AL037'

    WHEN c.SoldTo = 'G09929' and id.CustomerOrderNumber = '' THEN...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Problem with decimal output

    Since we don't have the create statement or sample data for your table (hint, hint!), are you asking why is the data incorrect? or why isn't it rounding? If you...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Size of database is growing very fast

    bubby (2/13/2014)


    Replication is not enabled

    I would look at the following thread: http://www.sqlservercentral.com/Forums/Topic695034-357-1.aspx



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Size of database is growing very fast

    bubby (2/13/2014)


    result is simple and replication

    Are you running replication? If so, have you checked that it is functioning properly?



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Size of database is growing very fast

    Have you checked for long running transactions? You could use sp_WhoIsActive, sys.dm_tran_active_transactions or DBCC OPENTRAN to find long running transactions.



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Size of database is growing very fast

    I would add to Lowell's query with the following:SELECT recovery_model_desc, log_reuse_wait_desc

    FROM sys.databases

    WHERE database_id = DB_ID()



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Time Format issues

    You can try this:declare @timevar int

    select @timevar = '145345'

    select right('000000' + cast(@timevar as varchar(6)), 6)

    select @timevar = '23'

    select right('000000' + cast(@timevar as varchar(6)), 6)



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Incrementing Existing Column Values

    Please read the first article in my signature about posting these types of questions to the forum. I have added the tables and some sample data for you and using...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Page life expetancy is low

    See the following KB article on when you need to add the -T845 trace flag: http://support.microsoft.com/kb/970070



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Page life expetancy is low

    The book that Gail mentioned is the reference, but changing the SCOM alerting threshold is not the point. The point is that you need to understand memory management and monitoring...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Page life expetancy is low

    Total memory on the instance is 64 GB but we have 4 instances, all with dynamic memory allocated(no max memory)

    I would recommend reading the book (not just the chapter) that...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Foreign Keys: Essential or Academic?

    I almost always have foreign keys in my relation design and not just for academic reasons. This will guarantee that I won't get orphaned records, if you use an ORM...



    Microsoft Certified Master - SQL Server 2008
    Follow me on twitter: @keith_tate

    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 166 through 180 (of 497 total)