Forum Replies Created

Viewing 15 posts - 37,561 through 37,575 (of 49,552 total)

  • RE: Are the posted questions getting worse?

    Lynn Pettis (7/19/2009)


    I mean, this and this from our PhD candidate just really make me wonder. Where does he even show us what he has tried to accomplish the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Dave Ballantyne (7/20/2009)


    Is it just me who internally screams , UNDERSTAND WHAT YOU ARE DOING.

    Nope, not at all.

    Some people want to be spoon-fed and not have to (horror) actually think...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: What is the Sql update command for a range values(numbers) in a row

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Table design

    awp (7/19/2009)


    I think Gail’s design suits much better for this purpose, but to implement this, I need to rebuild the whole thing again.

    Yeah, that is the downside, but at...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Table design

    Vinoo (7/19/2009)


    GilaMonster (7/18/2009)


    Did you change the names to obfuscate things, or are the columns really called that?

    How does that matter to solve the problem? you can have any name for...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Recovery question??

    rambilla4 (7/19/2009)


    Can we restore ONLY prod_2.ndf file from the backup file PROD.bak??

    Providing that you have log backups from the time of that full backup up until present, you should be...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Table design

    If that's the case, this design may work better. I'd still like more info to be sure.

    CREATE TABLE StudentAssessments (

    StudentID int, -- foreign key to student table

    TeacherID int,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Table design

    Mangled up = bad data, misleading data, loss of integrity, etc.

    Can you maybe explain a bit more what this table is used for and how it's used. It; almost sounding...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Table design

    No one said anything about data corruption.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: GAM (Sql Server)

    sudhakara (7/18/2009)


    1) Do you think creating data files equalent to Cpu Processor will create problem ? or will not readuce the contention ?

    It'll help, but more than 8 files...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Table design

    awp (7/18/2009)


    Sorry I didn't mean to confuse things by changing the names; I thought the names are irrelevant in this context, data types need to be correct.

    If those had...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: custom error message on check constraint.

    You can't put a custom error in a check constraint.

    Two options.

    1) (recommended)

    Use a check constraint, have the front end app handle the error and produce whatever custom error that you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Cannot make "AND' and "<>" work together

    Kenneth Gladden (7/17/2009)


    What am I doing wrong?

    The only comparisons with null that can return true are IS NULL and IS NOT NULL

    http://sqlinthewild.co.za/index.php/2008/01/16/comparisons-with-null/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Clustered Index

    maxyogesh2002 (7/18/2009)


    Is this true that Update SQL Query is slower because of Clustered index??????

    Unlikely. Nonclustered indexes may slow a data modification down, because the change has to be made in...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Table design

    Did you change the names to obfuscate things, or are the columns really called that?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 37,561 through 37,575 (of 49,552 total)