Forum Replies Created

Viewing 15 posts - 47,146 through 47,160 (of 49,571 total)

  • RE: SELECT WITH NOLOCKS

    Jeff Moden (3/21/2008)


    Regardless of what the cause of the deadlock is, I guarantee it's going to be code that has a BEGIN TRAN/COMMIT in it...

    The other place to look...

  • RE: SELECT WITH NOLOCKS

    Matt Miller (3/20/2008)


    Jeff Moden (3/20/2008)


    No... like I said earlier... WITH (NOLOCK) only affects SELECT's. The following is from Books Online... (or are we talking something different?)

    NOLOCK

    Do not issue...

  • RE: SQL 2000 in suspect mode

    Are there any errors in the error log?

    Without knowing more about why SQL's marked the database suspect, it's impossible to suggest an appropriate course of action.

  • RE: I/O Error (bad page id)

    Adam Haines (3/21/2008)


    You can also query msdb for suspect pages.

    SELECT * FROM msdb..suspect_pages

    On SQL 2005 only.

    Palwi: Questions related to SQL 2000 should rather go into the sql 2000 forums. Otherwise...

  • RE: ALLOW_PAGE_LOCKS : to use or not to use

    Generally, in my experience, if the code is written optimally and the indexes are well designed, there's little need to fiddle with the locking mechanism.

    Are you seeing lots of blocking?

  • RE: SQL 2KDatabase performance slowdown

    I would suggest you run profiler during the peak period to see what queries are running long, or doing lots of IOs.

    Once you've identified the slow running or resource hogging...

  • RE: DB Status

    Select name, state_desc from sys.databases

  • RE: High CPU. Many processes have SOS_SCHEDULER_YIELD

    The last wait time is a scheduler yield, but from what I can see, the curent wait type is 0 (0x000) and the wait time is 0. Hence the process...

  • RE: Indexed Views in SQL Server 2000

    Not sure about the second and third.

    1st probably uses the base table rather than the view because the column Salary isn't in the view, hence a scan of the...

  • RE: I want to add constraint for existing column

    For not null, it'll be an ALTER TABLE <Table Name> ALTER COLUMN ...

    The other two will be forms of ALTER TABLE <Table Name> ADD CONSTRAINT ...

    If you look up ALTER...

  • RE: One DB per user, what do you think?

    Pavle (3/19/2008)


    Does SQL Server store one execution plan per DB meaning that even if there are 10 identical stores procedures in 10 Db,s the server will store 10 times the...

  • RE: Indexed Views in SQL Server 2000

    Which edition of SQL 2000? (Enterprise, standard, ...)

    I was asing what the definition code for your indexed view is. (Create View ....)

  • RE: optimizing query

    Only if you don't mind potentially getting wrong data from time to time.

    Nolock allows reading of uncommitted data. Also, because of the way it's implemented, there's a chance of missing...

  • RE: Rebuild of system databases, what else needs to be recreated

    DTS packages

    Linked servers

    Server-scoped DDL triggers

  • RE: Indexed Views in SQL Server 2000

    What edition of SQL are you using?

    What's the indexed view's definition, and what does the query look like?

Viewing 15 posts - 47,146 through 47,160 (of 49,571 total)