Forum Replies Created

Viewing 15 posts - 36,271 through 36,285 (of 49,552 total)

  • RE: SQL corruption...best way to bcp out then in

    bcp is only necessary when you have irreparable corruption and no clean backups. The best way to recover from corruption (depending on the severity) is to restore a clean backup.

    Take...

    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: HELP!! Im stuck with my query!!

    Does the table applicant have a column named intakeid?

    p.s. do you realise you have a cross join here?

    FROM applicant a,program p

    That will return a Cartesian product of the rows 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: Rename mdf and ldf files ?

    San-847017 (10/15/2009)


    If you leave out either step 1 or step 3, the DB will be suspect when it's brought online.

    Gila, Infact it's not coming online at all. Getting the error...

    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: Help me shut up a vendor

    Ninja's_RGR'us (10/15/2009)


    GilaMonster (10/15/2009)


    Ninja's_RGR'us (10/15/2009)


    We I mean slowly I mean 10 seconds to record 1 record on a "supposed" index seek, his words not mine.

    Can you find/get vendor to find 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: Looping

    jordon.shaw (10/15/2009)


    How do I make this add 1 to ASSETINDEX for each record using the insert statement the way y'all have suggested?

    Make the column identity and let SQL handle it....

    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: Looping

    Or you can take a substring.

    Look up LEFT and SUBSTRING in SQL's books online.

    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: Afraid of Help

    Elliott W (10/15/2009)


    The training thing is so screwed up I don't know where to start.. It is one thing to say pay for the training yourself, but entirely another...

    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: Wait Time Numbers not adding up

    Fraggle-805517 (10/15/2009)


    Any thoughts on how to go about figuring out what is causing those?

    Sub-optimal queries

    Poor row estimates by the optimiser.

    Use sys.dm_exec_requests to look for queries prone to CXPacket waits...

    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: Wait Time Numbers not adding up

    Fraggle-805517 (10/15/2009)


    The ol' magic 8 ball.

    So 8 processor cores? No hyperthreading?

    7,086,376.171/8 = 885422.02 -- wait time is cumulative over all processors, so divide by 8 to get actual time....

    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: Failed BackUp

    Bill Mosca (10/15/2009)


    I guess you can't backup a log without having at least one full backup.

    No you can't. Until a full backup is taken, the log is auto-truncated on checkpoint...

    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: Looping

    jordon.shaw (10/15/2009)


    I guess I'm not explaining myself. I know how to do it the way that you just suggested; however, did you see my variables that I have set...

    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: Looping

    Edit: hit post too early. Working .....

    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: Help me shut up a vendor

    Ninja's_RGR'us (10/15/2009)


    We I mean slowly I mean 10 seconds to record 1 record on a "supposed" index seek, his words not mine.

    Can you find/get vendor to find the wait type...

    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: CPU reached 100%

    chk2009 (10/15/2009)


    Thanks for your reply, yes I want to reduce cpu usage, I believe SQL server is taking more memory.

    Find the queries that are using all the CPU. Optimise them....

    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: Maintenance package erors.

    SQL 2005 or SQL 2000?

    Check the maint plan history, check the SQL error logs.

    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 - 36,271 through 36,285 (of 49,552 total)