Forum Replies Created

Viewing 15 posts - 2,926 through 2,940 (of 7,191 total)

  • RE: How to avoid Data Purging?

    Only you can see your database, so it's up to you to investigate what's causing the problems and hence whether the best solution would be batching, rescheduling, rewriting, upgrading or...

  • RE: Strange issue with cross apply.

    Is there any reason to leave them in the old compatibility mode? If there isn't, you ought to bring them all up to date to take advantage of the...

  • RE: Strange issue with cross apply.

    That makes me suspect that your existing databases have a low compatibility level - SQL Server 2000 (80), maybe?

    John

  • RE: How to apply Service Pack 3 for SQL2008 R2

    Yes, just do your preparatory work and then run the exe. It's not easy to back out of. You'd need to reinstall SQL Server and then reapply the...

  • RE: HELP!

    I'm afraid I can't answer than until I know what your table looks like and what queries are running against it.

    John

  • RE: How to avoid Data Purging?

    Yes, or run them less frequently, or at a quieter time.

    John

  • RE: HELP!

    In that case, you probably have some system-generated horrors bringing the database to its knees. You can query your plan cache[/url] to see what the worst ones are (assuming...

  • RE: HELP!

    Rob

    What query is executed when the Close button is clicked? Please will you post a CREATE TABLE statement for the table in question?

    John

  • RE: How to apply Service Pack 3 for SQL2008 R2

    (1) Maybe, but bear in mind that performance may be affected because there will be a lot of modifications to the server, which will need to be written to the...

  • RE: SQL help I'm a noob

    It's a correlated subquery. So for each value of ID in the JOB table, it calculates the average commission for that ID in the COMISSION table. If that...

  • RE: SQL help I'm a noob

    zicado (11/30/2015)


    What is the result from:

    SELECT NAME FROM JOB WHERE 2340.00 < (SELECT AVG(VALUE_COMISS) FROM

    COMISSION WHERE JOB.ID = COMISSION.ID);

    You've gone to the trouble of posting DDL and sample data -...

  • RE: Help me understand bulk insert blocking chains on unrelated tables

    Search for, download and create sp_whoisactive. You can use it to see blocking chains and wait types in real time. Use Extended Events to capture blocking events and...

  • RE: alternative to while loop for a query

    We can't see your screen, so it's impossible to envisage your requirement. From what you describe, though, it sounds as if you need a MERGE statement to do your...

  • RE: Cannot Perform an Aggregate function on an expression containing an aggregate or a subquery

    WITH Capacities AS (

    select en.NAME as ClusterName, SUM(ROUND(CAST(CPU_CORE_COUNT as FLOAT)*CPU_Hz*count(cast(hs.HOSTID as BIGINT))/800000000,0)) as Hub_Capacity

    from VPXV_HOSTS as hs WITH (NOLOCK,NOWAIT)

    full join VPXV_ENTITY as en WITH (NOLOCK,NOWAIT) on hs.FARMID = en.id

    where en.TYPE_ID...

  • RE: Update table from join that generates duplicates - how does this work behind?

    Yes, I've seen that described as an "unreported cardinality error". In other words, there is more than one value to choose from for any or each of the rows...

Viewing 15 posts - 2,926 through 2,940 (of 7,191 total)