Forum Replies Created

Viewing 15 posts - 14,971 through 14,985 (of 22,211 total)

  • RE: Tempdb issue

    samsql (5/20/2010)


    yes saby i m gettin blocking in the tempdb.

    Grant there are procedure with begin and tran

    E.g

    proc ssa

    (

    Begin tran

    exec procedure1

    -----create some temp table and do...

  • RE: Tempdb issue

    Saby, I'm confused. Where did you get deadlocks in this situation. We're talking about blocking. That's not the same thing as deadlocks.

  • RE: How to get schemaname, tablename, identity column, foreign key constraints

    It really depends on your needs. That query is returning the data you outlined.

  • RE: Use Dynamic SQL to Improve Query Performance

    Brett Robson (5/20/2010)


    I don't see why you guys are promotiing the use of dynamic SQL. I'm often asked in job interviews when it's appropriate to use dynamic SQL - the...

  • RE: Tempdb issue

    Temp tables last for the length of the process that created them. That wrapper proc is the process, so as long as it's running, you'll keep those temp tables. You...

  • RE: How do we maintain system tables?

    You can capture DDL commands through an even trace or by looking at the default trace on the server. Based on that volume, the default trace might be rolling over...

  • RE: How do we maintain system tables?

    Yang-703993 (5/19/2010)


    I don't know... If you see data like this

    Table Namesysobjvalues

    Row Count3213517

    Reserved (MB)5740.40625

    Data (MB)4807.484375

    Index Size (MB)22.7890625

    Unused Space (MB)910.1328125

    Yeah, 3 million rows could be a bit off-putting, but it's still a...

  • RE: How do we maintain system tables?

    There really isn't anything "to do" with the tables. If you have lots of objects in your database, you're going to have lots of rows in the system tables. As...

  • RE: How do we maintain system tables?

    Generally, you don't. I've never heard of anyone defragging a system index. Since you're operating in 2005/2008, you can't get direct access to the tables anyway, you're just looking at...

  • RE: Execution Plan History

    No, when a plan is flushed from cache, it's gone forever. The only thing you can do is try to capture the plans regularly (based on how often they flush...

  • RE: Not fully qualifying

    It adds overhead, but it's pretty trivial. The accumulative effects aren't good, but you're unlikely to see any given query perform badly because of this.

  • RE: Tune Queries

    Please, edit the post, remove the XML. Then go back and save your execution plan as a .SQLPLAN file. You can then post the file as an attachment. From there...

  • RE: Clearing Missing index usage

    From the Books Online:

    The missing indexes feature is on by default. No controls are provided to turn the feature on or off, or to reset any of the tables returned...

  • RE: How to get schemaname, tablename, identity column, foreign key constraints

    Dynamic methods are frequently problematic, but to get the data you're looking for, check out the system views available under the schema called INFORMATION_SCHEMA. They should supply you with everything...

  • RE: SQL server Compatibility Question.

    To be able to use all the methods and abilities of 2008, you will need to set the compatibility mode to 2008, not 2000. Performance may or may not...

Viewing 15 posts - 14,971 through 14,985 (of 22,211 total)