Forum Replies Created

Viewing 15 posts - 20,371 through 20,385 (of 22,211 total)

  • RE: job to run a profiler trace

    You set a stop time as part of the trace definition. That will stop the trace automatically for you.

    From the BOL:

    sp_trace_create [ @traceid = ] trace_id OUTPUT

    ...

  • RE: Where Condition ?

    Sandy (5/20/2008)


    But your query is working fine, No issue on that but it may raise a performance issue if the table is large.

    Not if it's working off a good set...

  • RE: stored proc taking too long!

    It sure looks like you could just use the ROW_NUMBER function to get the incremental counts that you want instead of looping through with a cursor or a WHILE loop...

  • RE: RESEED in SQL 2000 and SQL 2005/2008

    Nice one AJ.

  • RE: Msdb mark Suspect

    After you recover and you set up new backup routines, in addition to msdb, be sure to backup the master database too.

    Good luck.

  • RE: Performance duplicate index

    From what I've seen in the past with duplicate indexes, the optimizer will just pick one. To realize the use of two, you'd have to have an index hint forcing...

  • RE: Analysing a Profiler Trace

    Itzik Ben-Gan gave a presentation last year at the PASS summit that showed the same query getting different results with very small data sets, all because of NOLOCK. It really...

  • RE: Performance duplicate index

    But even the read contention is only halved unless the index is covering. If it's not covering it still has to go to the table or the cluster to get...

  • RE: Alter Table within a Stored Procedure

    It should work. Are you sure you're in the right database? Are you looking through Management Studio? You might need to refresh in order to see the change.

  • RE: Trouble with subquery

    Yeah, I've got them ethics things too. That and there seem to be laws against using sticks on the students. When did that happen?

  • RE: Right forum for SCOM SQL questions?

    Just so long as you quantify your post to read "some knowledge" because I'm basically a newbie on SCOM myself. I've been working with it for, probably close to three...

  • RE: How to delete all data from MOST tables in a database without constraint conlicts

    Try modifying this query to exclude specific tables:

    SELECT QUOTENAME(TABLE_SCHEMA) AS schemaname, QUOTENAME(TABLE_NAME) AS name FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'

    Quick and dirty would be like this, Jeff will come...

  • RE: Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection

    Some operation within your code is attempting to perform math functions and it's dividing by zero. You need to determine which field is causing the problem. Without your code, data,...

  • RE: Right forum for SCOM SQL questions?

    I don't know if there is another forum for it. I've posted my own questions here.

    Getting specific information regarding SQL Server and SCOM is tough. Definately you want to look...

  • RE: OR or IN

    But, do it this way, and the execution time decreases radically. The number of reads is slightly higher though... for whatever that's worth:

    SELECT a.[AddressID],

    ...

Viewing 15 posts - 20,371 through 20,385 (of 22,211 total)