Forum Replies Created

Viewing 15 posts - 5,851 through 5,865 (of 7,597 total)

  • RE: Need help to design table which is can store Education Requirement for the Job Vacancy

    As to the current design, I'd make these comments:

    CVEducation

    InstituteName should 100% be normalized out to another table.

    DegreeName should 98% be normalized out to another table.

    Maybe SponsorID should be in a...

  • RE: Need help to give point and set the score

    Unless I'm missing/misunderstanding something, I think this will do it:

    UPDATE dbo.x_SCORE

    SET

    score_Gender = CASE WHEN myGender = whatGender THEN point_Gender ELSE 0 END,

    ...

  • RE: Conversion failed when converting the varchar value '3R' to data type int.

    Add quotes around "18", "26" and "28" when you check for those values:

    CASE

    WHEN left(LTRIM(RTRIM(account_number)),2)...

  • RE: TSQL no longer working in SQL2012

    Yep. You just need to CAST the first column as varchar:

    ...

  • RE: Clustered index in uniqueidentifiers column

    Yes, it's true.

    If absolutely necessary, create a nonclustered index(es) on the GUID(s).

  • RE: Difference in CDC vs Trigger

    If Change Tracking is enough for what you need it, use it, as it's less overhead than either CDC or a trigger. And it doesn't require Enterprise Edition.

  • RE: cannot find database

    First, you need to create all the logins on NM that are used in the db you copied there. You can script out the logins from the old server,...

  • RE: db owner

    You don't have to grant each procedure separately, you can grant execute on the schema (or for the entire db, no matter what the schema, if you prefer). The...

  • RE: Dynamic Shrink Log file on server

    What's proposed here is a really poor practice. You can't just arbitrarily shrink a SQL db log with no analysis because you could just be forcing it to be...

  • RE: Bad Query Plan

    TheSQLGuru (8/8/2014)


    ScottPletcher (8/8/2014)


    TheSQLGuru (8/8/2014)


    ScottPletcher (8/8/2014)


    My first choice would be to use RECOMPILE and just force SQL to rebuild a plan every time.

    But, if a HASH join is the "good" plan,...

  • RE: Bad Query Plan

    TheSQLGuru (8/8/2014)


    ScottPletcher (8/8/2014)


    My first choice would be to use RECOMPILE and just force SQL to rebuild a plan every time.

    But, if a HASH join is the "good" plan, forcing a...

  • RE: Bad Query Plan

    My first choice would be to use RECOMPILE and just force SQL to rebuild a plan every time.

    But, if a HASH join is the "good" plan, forcing a HASH join...

  • RE: Bad Query Plan

    Robert klimes (8/7/2014)


    Roger Sabin (8/7/2014)


    I tried what you suggest and it does force the "bad" plan when I use 40 and a "good" plan when I use 17. Thanks.

    So now...

  • RE: Index creation

    GilaMonster (8/7/2014)


    New Born DBA (8/7/2014)


    GilaMonster (8/7/2014)


    What does "Creating an index within the application" even mean?

    No Idea. I wanted to ask him the same thing

    Then do so.

    Seems to me it would...

  • RE: Index creation

    Unfortunately, you really can't accurately look at one index recommendation in isolation. You really have to consider indexes in toto, including a minimum of missing index and existing index...

Viewing 15 posts - 5,851 through 5,865 (of 7,597 total)