Forum Replies Created

Viewing 15 posts - 286 through 300 (of 1,518 total)

  • RE: On call support experience

    I hate being on call! :w00t:

    When I'm on call, I want to retire early.

    When not on call, I feel I want to work with SQL to the grave.

    But, aside...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Is it necessary to manually start the full-text index population after creating the index with auto-tracking?

    Craig Farrell (5/16/2011)


    You're correct, the second step is unnecessary.

    See this article: http://msdn.microsoft.com/en-us/library/ms187317.aspx, in particular in the remarks section for when you have to manually start a population. If WITH...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Advantages of creating signed SAFE assembly

    OK, thank you!

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: UNSAFE vs EXTERNAL_ACCESS assembly

    The use of static readonly fields for SAFE/EXTERNAL_ACCESS assemblies is discussed here:

    http://www.devx.com/codemag/Article/34918/1954

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: UNSAFE vs EXTERNAL_ACCESS assembly

    Steve-524674 (5/5/2011)


    Hi, Marios. Did you ever get additional information on this? Do you have a sample of the code before and after in c#?

    Hmm, that was a while ago, I'd...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: 76 distinct cached plans for the same stored procedure! Is that good or bad?

    There is also this white paper:

    Plan Caching in SQL Server 2008

    http://msdn.microsoft.com/en-us/library/ee343986(v=sql.100).aspx

    See "Query Plan Reuse" section on factors affecting plan reuse.

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: 76 distinct cached plans for the same stored procedure! Is that good or bad?

    Thank you all for your responses.

    There are indeed at least a couple of 'sins' committed by the devs here that are causing recompilations and are likely the culprit.

    (Incidentally, the number...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: 76 distinct cached plans for the same stored procedure! Is that good or bad?

    I found this link reporting similar issue:

    http://www.sqlservercentral.com/Forums/Topic979929-360-1.aspx#bm979947

    Does anyone have a query that looks at a bunch of exec plans and reports on differences?

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: 76 distinct cached plans for the same stored procedure! Is that good or bad?

    Ninja's_RGR'us (5/3/2011)


    Makes no sense. Normally you could get a few plans for different connection settings but this is ridiculous.

    Are use sure those are called via RPC and not via...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: 76 distinct cached plans for the same stored procedure! Is that good or bad?

    Here is the code:

    SELECT

    P.usecounts

    ,P.cacheobjtype

    ,H.query_plan

    ,LEFT([sql].[text], 1000) as [text]

    FROM

    sys.dm_exec_cached_plans P

    CROSS APPLY

    sys.dm_exec_query_plan(plan_handle) H

    OUTER APPLY

    sys.dm_exec_sql_text (p.plan_handle) [sql]

    WHERE objtype ='Proc' AND LEFT([sql].[text], 1000) LIKE @procName;

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Query Performance

    Run your sql statement and obtain the *actual* exec plan.

    In the exec plan identify the operator(s) with the largest cost, eg. clustered index scan.

    Compare actual with estimated number...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: SQL 2008 Backup Jobs being Scripted

    I have actually just tested the above scenario, and was able to reproduce one job schedule overwriting another, by simply using the same @schedule_uid.

    I deployed a new job on a...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: SQL 2008 Backup Jobs being Scripted

    I've experienced this before, but I'm not quite sure why this happens either.

    I do have a theory though. In the job script, there is code like in sample below:

    ...

    EXEC @ReturnCode...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: does physical dll file needed after we have create assembly based on it?

    Are there any scenarios where having the dll file present is required?

    I have had reports from our dev/QA teams that after a certain database is restored from production to the...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: does physical dll file needed after we have create assembly based on it?

    opc.three (4/20/2011)


    Technically you do not need the DLL at all, even in the first place. When you build and deploy a SQL CLR project from Visual Studio the assembly is...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

Viewing 15 posts - 286 through 300 (of 1,518 total)