Forum Replies Created

Viewing 15 posts - 44,281 through 44,295 (of 49,552 total)

  • RE: sql query to find statement currently executing in sp

    Input buffer only returns the name of the stored proc, if it is a stored proc that's running. If it's an ad-hoc SQL batch, it will return the query

    If 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: A database backup scenario

    Ahmad Osama (9/23/2008)


    vyas (9/23/2008)


    Yes you can restore.

    what if the transaction log back up is taken after the 3rd differential bachup

    When was the previous log backup taken?

    Or when was the 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 to store DBCCresults ?

    bhuvnesh.dogra (9/23/2008)


    hi gila ,

    i need to pass spid as parameter

    so its giving error :

    declare @spid int,@lstr varchar(100)

    set @spid = 52

    set @lstr = 'insert into Sp_info dbcc inputbuffer( '...

    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: A database backup scenario

    You should be able to. You'll have to have all the log backups made from the second diff backup, right up to where you want to restore to.

    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: Performance Implications of Database Snapshots

    Phil Melling (9/23/2008)


    All the more reason for me to read up some more on them! 🙂

    :hehe: When I get a chance I'll try and finish the follow-up to this article...

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

    What's the message that was written into the error log?

    You can shrink the log while people are on the system, but you shouldn't be shrinking the log at all.

    How...

    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: Caught in Wrong Job ....

    Ahmad Osama (9/22/2008)


    tho i think that these are the core DBA fields and each one shud hav pratical knowledge of them....

    That's a very narrow view of the DBA role. Personally...

    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 to store DBCCresults ?

    bhuvnesh.dogra (9/23/2008)


    i need to store DBCC results in a table for audit

    for ex:

    Create table Sp_info (Eventtype varchar(50),parameters int,eventinfo nvarchar(max))

    insert into Sp_info

    dbcc inputbuffer(51)

    Can somebody help me ???

    insert into Sp_info

    EXECUTE('dbcc...

    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: Server Performance

    Those look good.

    Can you monitor the stats as well as watching for blocking during the known slow time?

    Perhaps also run profiler for a while and see if you can correlate...

    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: Performance Implications of Database Snapshots

    Thanks. Glad you liked it.

    Just one thing though. Snapshots are not a backup strategy. They're great for rolling back accidental changes, but if the source DB is damaged, dropped, corrupted,...

    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: Users: Are they active?

    Jeff Moden (9/22/2008)


    Do they still have "C2 Auditing" in 2k5? If so, that would probably do it.

    They do. It's maybe overkill for checking when users log in. It 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
  • RE: Error conecting because of Login Trigger

    joannapea (9/22/2008)


    Hi Gail,

    Just wondering if you have any clever suggestions for preventing the login trigger from stopping logins altogether? I've written a trigger which logs all logon activity to 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: Datatype conversion

    Jeff Moden (9/22/2008)


    I'm sorry I missed it... Congrats on the 6k milestone, Gail. 🙂

    😀 Thanks.

    Working from home means I can keep a better eye on the place. :hehe:

    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: Not using Index

    Jeff Moden (9/22/2008)


    Considering that BETWEEN is reevaluated by the optimizer as an AND similar to the original query in this thread, I'm really surprised. I think it may 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: Unable to create index on table when DB is set auto shrink

    Jeff Moden (9/22/2008)


    GilaMonster (9/8/2008)


    Turn autoshrink off!

    Heh... Daaannngg Gail! Didn't know you could shoot porkchops that hard! 😀

    :hehe: I prefer paw-paws. So much easier to aim.

    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 - 44,281 through 44,295 (of 49,552 total)