Forum Replies Created

Viewing 15 posts - 36,631 through 36,645 (of 49,552 total)

  • RE: generate column list

    Expand out object explorer, click in 'Columns' of the table, drag that to the query window.

    I know RedGate's SQLPrompt expands out *, but it's not free.

    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 SQL Server internally manages the Deadlock.

    What more are you looking for?

    When SQL detects a deadlock it picks one of the processes as the victim, kills that process to release the locks and allows the other...

    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: ExecPlan: cost is so high but the execution is very fast

    riga1966 (9/1/2009)


    So the Execution Time for this query is 855 ms?

    Is it the right approach overall?

    Yup. The first execution time was for the first print. The second was for 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: ExecPlan: cost is so high but the execution is very fast

    riga1966 (9/1/2009)


    It looks like it diisplays results for 5 queries.

    No, 4 queries.

    The first is listed as parse and compile time, so it's the time to parse and compile the entire...

    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?

    Bob Hovious (9/1/2009)


    Starts tomorrow for me, 2AM precisely.

    Presenting or attending, Gail?

    Neither. Sleeping.

    The 1st of the 24 sessions starts 2AM tomorrow in my timezone, that's what I meant by 'starts'. Much...

    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 2008 Log Truncation

    jeremym (9/1/2009)


    If it is shrunk beyond the size it needs to be won't it just allocate more space?

    Yes, and that will force transactions to wait while the log is expanded...

    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: Arithmetic overflow

    Bob Hovious (9/1/2009)


    Whups

    😀

    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 2008 Log Truncation

    jeremym (9/1/2009)


    From what I gather the the 0 is the same as unspecified and will decrease the file as much as possible.

    Correct, but that is not a good...

    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: ExecPlan: cost is so high but the execution is very fast

    Count the queries or add PRINT statements.

    Did you check the articles I referenced? I'm sure this is mentioned in one of 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: SQL 2008 Log Truncation

    Apurva (9/1/2009)


    I dont think even red gate has anyhting for readign the log. Not sure now.

    They do, but only for SQL 2000.

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

    rajdba (9/1/2009)


    What you think we should do?

    Wait or restart SQL. Those are your only options. Note that if you restart SQL and do not have 2005 Enterprise edition, 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: SQL 2008 Log Truncation

    jeremym (9/1/2009)


    I think what I am going to do is script it for an as needed use using the DBCC SHRINKFILE (N'DBName_LOG' , 0, TRUNCATEONLY) command.

    No!

    Firstly, truncateonly 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: Arithmetic overflow

    Bob Hovious (9/1/2009)


    Good luck with your 2 a.m. presentation, Gail.

    What 2am presentation?

    p.s. right thread for this question?

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

    Elliott W (9/1/2009)


    This was especially true in 2000, almost without fail if I killed a process and it was in the middle of a rollback and then I killed 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: Blocking

    Elliott W (8/31/2009)


    If you stop and start SQL I can almost guarantee your database will be corrupted.

    Not at all. If you stop SQL and restart it, it will 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

Viewing 15 posts - 36,631 through 36,645 (of 49,552 total)