Forum Replies Created

Viewing 15 posts - 151 through 165 (of 389 total)

  • RE: Stored Procedures slower than queries

    Stijn Vervaet (1/12/2016)


    Hi MadAdmin, I've continued my generation of DSQL SPs (an example you can see posted below), but unfortunately I see no such speed gains after testing multiple times...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: How do I update STATISTICS on a column

    ok, so you didnt want to update a particular statistic sniper rifle style.

    That command will rebuild all statistics on the table, i.e. shotgun.

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: How do I update STATISTICS on a column

    mw112009 (1/12/2016)


    What I need is to update statistics on just one column. That column is used by an index.

    I am assuming you got the index name from the query I...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Stored Procedures slower than queries

    Stijn Vervaet (1/11/2016)


    I want to try the Dynamic SQL generation, but something tells me that (especially since some of my tables have a LOT of columns, since this is...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: How to check whether email was sent to GMAIL account ?

    All you can do is see if the message was qqueued for send here

    select * from msdb.dbo.sysmail_mailitems

    See in this table if it has info you could use.

    Further than that, as...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: How do I update STATISTICS on a column

    mw112009 (1/11/2016)


    UPDATE STATISTICS tabA.ColB;

    GO

    The above is the syntax for updating all stats on a table like below

    update statistics schema.table

    If you want to update statistics it is

    update statistics schema.table.STATISTICSNAME

    So create statistics...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Creating Seperate Schema

    SQL Server Best Practices – Implementation of Database Object Schemas

    https://technet.microsoft.com/en-us/library/dd283095%28v=sql.100%29.aspx

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Limiting Access to the Secondary (Read Only) Node of High Availability Group

    Jacob Wilkins (1/5/2016)


    I'm not aware of any way to force connections to the read-only replica for particular logins.

    When I've needed logins to have permissions solely on the read-only secondary, I've...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Limiting Access to the Secondary (Read Only) Node of High Availability Group

    Login trigger on live server A.

    No login trigger on liver server B

    Do rollback if Login name = 'ThisHardenedDeveloper'

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Fun with qualifiers

    Must be something wrong with my version of sql.

    Tested it out since I got the answer wrong, and query returned results without error.

    My default quoted identifier is on, so maybe...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Optimizing query with user defined table types

    phosplait (1/4/2016)


    which I did not include initially because I didn't want it to distract from the question of why the TVP operations had such a high cost.

    These types of...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Optimizing query with user defined table types

    Cardinality = 15089400 for Seek Keys

    Actual number = 2454167 for seek key.

    2.4 million concatenations.

    Let us know the 3 tables row counts so that we have an idea, script out...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Data-tier application version storage at sql server level

    Try [msdb].[dbo].[sysdac_history_internal] and [msdb].[dbo].[sysdac_instances_internal]

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Best way to determin which column or set of columns to partition a table on

    dndaughtery (12/30/2015)


    There are about 10 developers querying the table and trying to think of which columns are used in all of their where clauses would be pretty difficult.

    SELECT

    SUBSTRING(text, statement_start_offset/2+1,

    ...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: How to I getr around the \ issue

    Jacob Wilkins (12/22/2015)

    CREATE TABLE #test (some_string varchar(max));

    INSERT INTO #test

    SELECT TOP 1000000 ac1.name

    FROM ...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

Viewing 15 posts - 151 through 165 (of 389 total)