Forum Replies Created

Viewing 15 posts - 61 through 75 (of 107 total)

  • RE: Finding Table Constraints With Column Level Detail

    Jack Corbett - Thursday, December 28, 2017 4:03 PM

    Here's how I get Foreign Key info:

    SELECT
      FK.name,
      SCHEMA_NAME(FK.schema_id) AS...

  • RE: Interesting DimDate population task

    Hi,

    Great post. I thought I'd chime in with something that hopefully could help. My organization has a similar DimDate table. Upon taking a closer look, it's populated by...

  • RE: Convert from datetime to varchar to int

    John Mitchell-245523 - Tuesday, January 9, 2018 1:46 AM

    daniness - Monday, January 8, 2018 10:58 AM

  • RE: Convert from datetime to varchar to int

    John Mitchell-245523 - Monday, January 8, 2018 9:37 AM

    In those last three conversions you're doing, you're mixing the syntax for CAST (which...

  • RE: To Index a Computed Column...

    Okay, so another questions for the experts out there....so as posted above, I'm in the process of attempting to optimize a crazy query, and I think I'm on a good...

  • RE: To Index a Computed Column...

    Thank you for your feedback, Jeff. That was very helpful and I was finally able to use the "Persisted" option 🙂.

    I am wondering though, if there's...

  • RE: To Index a Computed Column...

    Hi Jeff,
    Thanks for your reply. So upon looking into it further, the CoverageEffectiveDateKey is actually a foreign key that has been set to the INT datatype, which I traced...

  • RE: To Index a Computed Column...

    Hi J Livingston SQL,
    "CoverageEffectiveDateKey" is of the int datatype...it displays dates in the "yyyymmdd" format...it's actually a foreign key being used by several tables in the datamart here....

  • RE: Query Optimization Advice

    Sergiy - Thursday, November 30, 2017 4:07 PM

    From somewhere inside the query:

      FROM [dbo].[FctCoverageLengthDetail]

    WHERE CASE

         WHEN([CoverageLengthMonthNumber]=13 or[CoverageLengthMonthNumber] =25...

  • RE: Query Optimization Advice

    BrainDonor - Friday, December 1, 2017 7:45 AM

    I haven't seen a query quite as spectacular as this one before but have come...

  • RE: Query Optimization Advice

    Hi Jeff,

    Thanks for your reply. Yes, this code has been returning about 15 million rows...which seems to be the norm for the business here. The business users here...

  • RE: Query Optimization Advice

    ScottPletcher - Thursday, November 30, 2017 12:36 PM

    Are you willing to try changing the Clustering on table FctCoverageLengthDetail as I suggested earlier? ...

  • RE: Query Optimization Advice

    Hi ScottPletcher,

    Thanks for the suggestion....sorry I meant to reply to your earlier post. I will try changing the clustering and report back with the results. Thank you :-).

  • RE: Query Optimization Advice

    GilaMonster - Wednesday, November 29, 2017 12:48 PM

    daniness - Wednesday, November 29, 2017 10:39 AM

  • RE: Query Optimization Advice

    Lynn Pettis - Wednesday, November 29, 2017 2:23 PM

    Okay, you seriously need to figure out what it is they are expecting and...

Viewing 15 posts - 61 through 75 (of 107 total)