Forum Replies Created

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

  • RE: Identifying last updated table

    Not unless there's some trigger on those tables that audits changes.

    You can run profiler against the server to see what commands and procedures are run by the app. DEpending whether...

    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 one keep writing to the Log at minimum?

    xintanaka (10/31/2007)


    DECLARE @TranName VARCHAR(20)

    SELECT @TranName = 'MyTransaction'

    BEGIN TRANSACTION @TranName

    p.s. I wouldn't bother getting into the habit of naming your transactions. Transaction naming is more for commenting than anything else 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: How can one keep writing to the Log at minimum?

    By bulk operation, I'm resfering to a specific T-SQL command - BULK INSERT. Normal inserts, updates, deletes are not bulk operations, and they log completely to the tran log, as...

    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: Issues running a backup from a trigger?

    For the option I suggested, you need a table (call it RequestedJobs). This is just a very rough example, and may need tweaking/enhancing for your environment.

    CREATE TABLE RequestedJobs (

    RequestTime DATETIME,

    Request...

    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: The Scary DBA

    A few years back I was working as a developer in a custom software house. One week we came up with a prank to play on some of out more...

    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: Varchar default length

    The 'default' length of varchar depends on where it is used.

    In management studio, when creating a table the default length is 50.

    If you declare a variable of type varchar...

    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 make audit trigger 'capture' all rows affected?

    The problem is in the lines

    SELECT TOP 1 @Dobjectkey = object_key FROM DELETED

    SELECT TOP 1 @Iobjectkey = object_key FROM INSERTED

    There can be multiple lines in the inserted and deleted...

    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: Can SAN Read+Write Cache cause out of sync db calls?

    aspersage (10/30/2007)


    So the question is, are SANs setup that way such that you can get a query response from the READ cache that does not reflect committed WRITE transactions 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: Issues running a backup from a trigger?

    Two options.

    1 - Have the trigger insert a row into a RequestedJobs table, and reset the status. Create a SQL Agent job that polls the table at enatever frequency is...

    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 one keep writing to the Log at minimum?

    dandrade (10/30/2007)


    I saw this QotD where the answer was TRUNCATE TABLE. Then I read a bit more and was amazed that there is no writing to the Log:

    Truncate does write...

    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: Large Table Delete 105+ Million Rows...

    p.s. If you don't have space in the DB, you can also BCP the data that you want to keep out to a network drive/removeable drive, then BCP in once...

    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: Large Table Delete 105+ Million Rows...

    How many rows are you keeping relative to the number you're deleting?

    What I often suggest for deletes that affect most of the table is to first copy the rows 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: Business Intelligence Developer Certification

    Ben Sullins (10/30/2007)


    I'm not sure what you guys are getting all fussy about...those links and exams don't even exist on those sites. Besides what better study guide is there then...

    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: I Need Full Info of MCTS(70-431) exam,Please give me Tutorial and Hints.

    Just watch out for the simulations. They catch a lot of people.

    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: Business Intelligence Developer Certification

    If the MS exam security people notice you offering brain dump links, there's a good chance that you will have any certifications you have revoked and a ban placed on...

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