Forum Replies Created

Viewing 15 posts - 47,431 through 47,445 (of 49,552 total)

  • RE: How can I limit CPU usage per user in SQL 2005?

    You could insist that she adds OPTION (MAXDOP 1) to the end of each of her queries. Not ideal, but it might work.

    You can use the governor that's in SQL...

    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: TIMEOUT EXPIRED WHILE TRYING TO EXECUTE A VIEW MANUALLY FROM SQL SERVER 7

    No indexes and 2 million rows. Ouch. Does the table have a primary key?

    I can suggest an index that is almost guaranteed to make this view faster. However, 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: Storing Statistics

    Possibly someone formerly or currently on the dev team would know. There doesn't seem to be much available on the internals of statistics

    Conor Cunningham[/url] indicated he might be writing 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
  • RE: TIMEOUT EXPIRED WHILE TRYING TO EXECUTE A VIEW MANUALLY FROM SQL SERVER 7

    Please don't post in caps. It's the online equilalent of shouting, and it's kinda hard to read.

    Could you please post the definition of the view, the schema and indexes of...

    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: Storing Statistics

    May I ask why you're interested?

    In SQL 2005, all the implementation details of stats are hidden. On SQL 2000 it was possible to see the statsblob (an IMAGE column...

    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: Selective update on table where column IS NULL

    How about just

    update header set Siebeltransnumber = CONVERT (char(6),h.trans_date,12)

    +substring (h.trans_number, patindex('%[^0]%', h.trans_number), 20)

    where Siebeltransnumber IS NULL

    The reason you're getting errors is that SQL was trying to evaluate the subquery...

    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: Transactions and Hints

    Placing hints without using WITH is deprecated syntax. SQL 2000 does allow hints to be placed without using WITH. SQL 2005 does 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: How do I do reindexing & defragmentation of my database

    Refer to OP's other post on this please- Reindexing and defragmentation (SQL 2000)

    Apparently server is 2000, post was initially in wrong forum.

    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: "Invalid argument."

    Can you post the update statement that you're trying to 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: Transactions and Hints

    Transactions by themselves don't cause locks or force locking modes. They just mean that a number of statements are treated like a single statement.

    Temp table names don't clash with 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: Create trigger on system table?

    If you're on SP2, use a login trigger. I've got one on my main server to prevent exactly this - users logging in using accounts they're not supposed to.

    Short sample...

    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: Index Size Question

    Spaceused can get out of sync with reality, especially on SQL 2000. I've had it reporting negative space used on a table.

    Run DBCC updateusage on that index and see if...

    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 Tuning on Transactional Replication in SQL SERVER 2005

    If you need to do transactional replication, then you'll have to ensure there are primary keys on all tables you want to replicate.

    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: Index Size question

    Please don't cross post. It wastes people's time and fragments replies. Most of he regulars here read all the forums

    Disscussions to the following thread please - Index size (Performance tuning)

    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: help with the query speed

    Also the table schemas and index definitions would help.

    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 - 47,431 through 47,445 (of 49,552 total)