Forum Replies Created

Viewing 15 posts - 48,466 through 48,480 (of 49,552 total)

  • RE: Teaching the Masses

    I must've missed that MS session on wednesday. With only a couple of exceptions, I found the presentations to be good and relatively informative. The ones I didn't, I left...

    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 DBREINDEX

    Try this

    select cast(Msg_ID as varchar(36)), count(*)

    from AgentsStateChanges

    group by cast(Msg_ID as varchar(36))

    having count(*)>1

    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: Really interesting issue!

    Update the table's statistics. Out of date stats can result in exactly the problem you describe. Index defrag doesn't update stat, an index rebuild will. Otherwise, run UPDATE STATISTICS [table...

    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: tracking data change

    Not in SQL 2005. You'll have to write the code somewhere. In a trigger, or in a procedure if all data modification is done through procedures.

    I would recommend a trigger...

    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 memory usage

    I don't think studio has perfmon on it

    Performance monitor is a windows app, not a sql tool. All the windows OSs since windows 2000 (at least) has it.

    There are 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: SQL memory usage

    p.s. Use perfmon to see if it really is SQL Server. Task manager's memory reading is hard to understand.

    Process(sqlsrvr.exe)/private bytes (What it has comitted)

    Process(sqlsrvr.exe)/virtual bytes (virtual memory pool)

    Process(sqlsrvr.exe)/working set (memory...

    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 Query tuning

    In addition, the index definitions would assist and, if possible, the xml query plan (link, not post, it will be huge)

    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 memory usage

    How much memory do you have on your server?

    What service pack of SQL 2005 do you have?

    Have you set max and min server memory?

    What else is running on the server?

    Run...

    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: #temp table blocking issue

    SQL already automatically adds random numbers to temp table names. Adding your own will just make scripts more complex, nothing else.

    Nolock will help with the shared locks, but will 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: Changing a script to show SERVERPROPERTY

    Jay, I do apologise. This completely slipped my mind on the run up to PASS. I hope this makes up for the delay.

    I don't normally recommend cursors, but this...

    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: #temp table blocking issue

    Select... into puts locks on some of the TempDB system pages until the select is finished. Try using Create Table... Insert into...

    Post the entire code if you can. Maybe someone...

    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: Need help figuring out relation of table to sequence number.

    Is the full error message "The row was not found at the Subscriber when applying the replicated command." I didn't have a clue what you were talking about until I...

    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: Views and Performance

    There shouldn't be. Views are inlined when SQL runs the query. But as I often tell my developes, try both ways and see if there's a difference

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

    Even, in terms of what? Row position based on a certain order, an identity column, something else ????

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

    Define 'even rows'

    Do you have an identity column and only want rows where the id is 2,4,6,... ?

    Do you want every other row as defined by a certain order by?

    Off...

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