Forum Replies Created

Viewing 15 posts - 11,731 through 11,745 (of 22,214 total)

  • RE: Query Performance

    chandan_jha18 (10/6/2011)


    Grant Fritchey (10/5/2011)


    paul_ramster (10/5/2011)


    Your outer query has the WHERE clause:

    where PostedDate='1/19/2011'

    and PostedDate is defined in the view as:

    CAST(CAST(SUBSTRING(WH_Status.StatusHistory,CHARINDEX('Batch posted successfully',CONVERT(VARCHAR(MAX),WH_Status.StatusHistory))-35,26) AS DATE) AS DATETIME) AS PostedDate

    You will always get...

  • RE: Are the posted questions getting worse?

    Ninja's_RGR'us (10/6/2011)


    Grant Fritchey (10/6/2011)


    Steve Jones - SSC Editor (10/6/2011)


    If you haven't seen it, his 2005 Stanford Commencement. Excellent talk: http://www.youtube.com/watch?v=D1R-jKKp3NA&feature=player_embedded#!

    A sad day, and a reminder that I'm getting older as...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (10/6/2011)


    If you haven't seen it, his 2005 Stanford Commencement. Excellent talk: http://www.youtube.com/watch?v=D1R-jKKp3NA&feature=player_embedded#!

    A sad day, and a reminder that I'm getting older as well. People I...

  • RE: Copying only the content of databases

    Script out the database. Like it says above, use SSMS to generate a script. You can also make calls to SQL Server Management Objects (SMO) from code to generate...

  • RE: DMV sys.dm_db_missing_index_group_stats returns no rows

    It's not something I've run into before. Are you up to date on the service packs? Have you looked to install any of the cumulative updates? I'd start there.

    Just a...

  • RE: Proc with passed variable very slow unless variable is redecalred

    For additional methods of dealing with parameter sniffing, check out Chapter 38 of the SQL Server MVP Deep Dives II[/url] book. It covers things not included in the article such...

  • RE: Is it possible to format and style this code?

    TSQL is a querying language, not a presentation and formatting language. If you want to change the format, you need to have a report, a spreadsheet, or build an application.

  • RE: Moving data from staging table original table

    Too bad you weren't on 2008 or better, you could just use the MERGE command.

    As it is, you need to do two TSQL statements. The first should be an INNER...

  • RE: Query Performance

    vince_sql (10/5/2011)


    Grant Fritchey (10/5/2011)


    chandan_jha18 (10/5/2011)


    Thanks. I was trying to remove the cast functions in the 'on' filter which Grant mentioned sometime ago.

    But as you(Paul and Grant) mentioned about posted...

  • RE: Query Performance

    chandan_jha18 (10/5/2011)


    Thanks. I was trying to remove the cast functions in the 'on' filter which Grant mentioned sometime ago.

    But as you(Paul and Grant) mentioned about posted date which is...

  • RE: Query Performance

    paul_ramster (10/5/2011)


    Your outer query has the WHERE clause:

    where PostedDate='1/19/2011'

    and PostedDate is defined in the view as:

    CAST(CAST(SUBSTRING(WH_Status.StatusHistory,CHARINDEX('Batch posted successfully',CONVERT(VARCHAR(MAX),WH_Status.StatusHistory))-35,26) AS DATE) AS DATETIME) AS PostedDate

    You will always get a scan on...

  • RE: Query Performance

    chandan_jha18 (10/5/2011)


    Grant Fritchey (10/5/2011)


    No real way to tell you anything without more information. Minimum an execution plan.

    You say you're getting a table scan, do you have clustered indexes on the...

  • RE: Best approach

    timscronin (10/5/2011)


    Could I not setup another instance on the existing clusters and log ship/mirror to that node?

    Yeah, as long as it's a separate instance. In terms of a DR situation,...

  • RE: Best approach

    If the DB names are the same, you won't be able to log ship or mirror and still have access to one of the databases.

  • RE: Query Performance

    No real way to tell you anything without more information. Minimum an execution plan.

    You say you're getting a table scan, do you have clustered indexes on the tables? If not,...

Viewing 15 posts - 11,731 through 11,745 (of 22,214 total)