Forum Replies Created

Viewing 15 posts - 436 through 450 (of 1,034 total)

  • RE: Hash Join

    mtassin (2/20/2012)


    now it seems to select all of them.

    Except the linked article doesn't mention anything about uniqueness constraints.

    Actually, no I just misread it.

    Make sure that statistics exist on the columns...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Hash Join

    now it seems to select all of them.

    Except the linked article doesn't mention anything about uniqueness constraints.



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: ADO recodset problem with nvarchar(max)

    valeryk2000 (2/16/2012)


    It handles perfectly the other way - when I insert into SQL table and set the parameter

    cmd.CreateParameter("@CaseSummary", adLongVarWChar, adParamInput, -1, IIf(IsNull(txtCaseSummary.Value), Null, txtCaseSummary.Value))

    So Access 2003 handles something at...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: autofix change in 2008

    I still use it manually with no trouble, but I came up with this for when we restore production to a test environment.

    EXEC sp_msforeachdb '

    USE [?];

    DECLARE @cmd NVARCHAR(MAX)

    SELECT

    @cmd =...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: ADO recodset problem with nvarchar(max)

    I don't believe Access 2003 will handle nvarchar(max)

    The SQL Backend is fine with it, the Access front end is not. So in this case I'd make the client do...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Slow union query

    Better would be to calculate the date back and use the date for the comparison.

    Using non-deterministic functions on date columns in where clauses is generally a no-no... if there are...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: 10 Bad Things About Reporting Services 2008 R2

    YSLGuru (2/10/2012)


    Do any of you who have to create or modify document/letter style reports and who have worked with Crystal and SSRS, do you find it easier, harder or the...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Tips to optimize your SQL statements

    Daniel Bowlin (2/10/2012)


    So I read the article and ran the query for missing indexes ordered by performance impact.

    The first 4 missing indexes were for the same table. Take...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Tips to optimize your SQL statements

    5) Check for any table or Index scans. Using the execution plan, it's easy to identify if the SQL statement is performing any table or index scans. In the majority...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Database Performance Transparency

    Doesn't work with Clustered instances. Or with default instances

    SET @instanceName = CONVERT (VARCHAR,SERVERPROPERTY ('ComputerNamePhysicalNetBIOS')) + '\' + CONVERT(VARCHAR,SERVERPROPERTY('InstanceName'))

    Will return Null for a default instance and NULL out @instanceName

    It will...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Why index use or not

    Grant Fritchey (2/7/2012)


    mtassin (2/7/2012)

    I don't see different query plans with 4136 on or off, I see vastly different performance with respect to response times. So much so that I...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Why index use or not

    GilaMonster (2/7/2012)


    mtassin (2/7/2012)


    Really?

    For us the new variant of Parameter sniffing kicked us in the teeth when we jumped from SQL 2000 to 2008 R2.

    What 'new variant of parameter...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Why index use or not

    GilaMonster (2/7/2012)


    mtassin (2/7/2012)


    GilaMonster (2/7/2012)


    I will admit, recompile would not be my first or even second option for dealing with parameter sniffing.

    Personally dealing with parameter sniffing I prefer Traceflag 4136. ...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Where can I download a Thesaurus file?

    Actually it was the commented section in the query that says "this errors out and isn't what I was expecting"

    I originally just changed the path to the file and ran...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Why index use or not

    GilaMonster (2/7/2012)


    I will admit, recompile would not be my first or even second option for dealing with parameter sniffing.

    Personally dealing with parameter sniffing I prefer Traceflag 4136. 🙂



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

Viewing 15 posts - 436 through 450 (of 1,034 total)