Forum Replies Created

Viewing 15 posts - 43,021 through 43,035 (of 49,552 total)

  • RE: how to identify pc name

    If you don't already have some form of auditing in place, there's no way you're going to identify historical events. If you're setting up auditing, then you can use 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: Jonathan Kehayias: SQL Hero!

    Jonathan Kehayias (11/21/2008)


    how to write badly performing code which I have always wondered how to do. 😀

    😛

    Congrats on the award. I intend to take the app for a...

    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: Reading data from the .LDF file

    Lynn Pettis (11/22/2008)


    Ahh geez, Gail, you're taking the fun out of it! :P;)

    Oh, I'm sorry. I'll play dumb next thread... 😉

    11pm Seattle time and I'm checking the forums. still...

    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: Any one can send me answers for these

    venkat (11/21/2008)


    Hi,

    Do you know I'm a Sr. DBA. Some times I am full bizzi thats why I'm sending forum response for finding easiest and fastest way.

    A senior DBA who...

    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: Reading data from the .LDF file

    The transaction log is not there for auditing purposes. If you're wanting to audit data changes, look at triggers. DML triggers to capture data changes, DDL triggers to capture schema...

    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: How can I join derived table

    I don't have time right now to try and rewrite your entirequery, especially not without table schemas or sample data. Look at the sample update statement I posted above and...

    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?

    Jeff Moden (11/21/2008)


    Another favorite are those that ask things like "which would be faster" and they post the code for both... talk about "lazy". :hehe:

    Yeah, but at least those are...

    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: Weired Security Error

    does that login have a mapped user in that database/

    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: Strange behavior for stored proc

    The different settings may cause problems. Make the settings in management studio the same as in the app and see what behaviour you get.

    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: How can I join derived table

    Don't have time to rewrite it now.

    Can you try moving the subquery with the sum into the from clause and treating it as a derived table? I know it's not...

    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: Strange behavior for stored proc

    There are articles on my blog on parameter sniffing.

    Were all the parameter values the same? All the options (ansi_nulls, etc) the same?

    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: DBCC SHRINK FILE with NOTRUNCATE , how to see the results?

    Don't shrink. Even with the notruncate, you will badly fragment your indexes. There's little gain in moving the free space to the end of the file.

    There will be no change...

    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: Strange behavior for stored proc

    Parameter sniffing?

    Did you run the proc from management studio, or did you run the contents?

    Can you post the proc?

    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: SQL database service will not start during SQL 2005 install

    Anything in the event log? Anything in the error log?

    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: How can I join derived table

    Right. Now we can talk about this.

    Consider moving the subqueries into the from clause of the update. I can't rewrite the entire things now, I'm in a presentation.

    So, the general...

    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 - 43,021 through 43,035 (of 49,552 total)