Forum Replies Created

Viewing 15 posts - 8,296 through 8,310 (of 22,214 total)

  • RE: Urgent :Index Rebuild Job not working as Expected

    You've conflated rows with pages. The number of rows doesn't really matter. It's the number of pages that affects how index defragmentation occurs within the index. If the index is...

  • RE: Sort operation in execution plan

    Pretty sure Koen has nailed it already. The JOIN is likely to change the order in which data is retrieved, so a sort operation will be necessary.

  • RE: chache queries

    It sounds like you're hitting bad parameter sniffing. But, without seeing the "good" and "bad" execution plans, it's hard to know for sure. You need to capture both plans and...

  • RE: Any tricks for simulating a "Connection Timeout Expired" message?

    mister.magoo (4/29/2014)


    Grant Fritchey (4/29/2014)


    Try using the WAITFOR command in T-SQL. That'll pause the execution of the query and you should see a timeout.

    Except that will be a Command Timeout, not...

  • RE: CPU usage in percent

    Assuming you don't have throttling enabled and just have the default group, you can get it from here:

    SELECT * FROM sys.dm_os_performance_counters AS dopc

    WHERE dopc.counter_name = 'cpu usage %'

    AND dopc.instance_name =...

  • RE: SQL Query Performance: CXPACKET

    According to the statistics you're moving 197 million rows with no where clause. Don't bother with an index. It won't do any good. As currently built out, there's almost nothing...

  • RE: Server Side Trace

    Yeah, but that's index fragmentation. Shrinking and growing a database file fragments at the OS level. There's a decent little article about how to look at this over here at...

  • RE: VM's for a demo - local or in the cloud?

    TheSQLGuru (4/29/2014)


    I think you can support multiple VMs without having a "killer laptop", especially if you have an SSD attached (or even a fast USB3 flash drive, like my Patriot...

  • RE: Any tricks for simulating a "Connection Timeout Expired" message?

    Try using the WAITFOR command in T-SQL. That'll pause the execution of the query and you should see a timeout.

  • RE: chache queries

    You can get the plan_handle by querying sys.dm_exec_query_stats or sys.dm_exec_proc_stats if it's a stored procedure. If you need to use sys.dm_exec_query_stats, you can combine it with sys.dm_exec_sql_text in order to...

  • RE: Server Side Trace

    New Born DBA (4/29/2014)


    And I also mentioned that we are shrinking the DB every week, so you guys don't think that's what's causing the problem right?

    I'm not saying this...

  • RE: Server Side Trace

    The query times aren't terribly long at 200-800 milliseconds or so. But the fact that you're using sp_trace_getdata to collect information means you gathered this using the GUI. Don't do...

  • RE: VM's for a demo - local or in the cloud?

    I only go to the clouds for my demos if I'm actually demoing cloud stuff. Too much can go wrong in demos anyway. Adding in connectivity on top of it...

  • RE: 166 days to create index

    scott_lotus (4/29/2014)


    I use Quest Spotlight to monitor blocking and locking performance.

    The "WAIT STATISICS" tab is currently showing 75% MISC WAITS.

    I will check it again during the index creation and publish...

  • RE: one db versus multipl dbs

    Just in terms of management, loads and loads of databases is a bit of a nightmare. But, from the standpoint of separation of customers, it's not a bad idea. Also,...

Viewing 15 posts - 8,296 through 8,310 (of 22,214 total)