Forum Replies Created

Viewing 15 posts - 91 through 105 (of 205 total)

  • RE: Cannot drop a constraint for temp table

    Sorry about the duplicate post but when I first submitted the question I was met with a 500 error and lots of useful info about IPs,Paths,table names etc that I...

  • RE: Does anyone have a query for...

    Thanks for that, it is useful but it looks like I would have to check each plan in turn to find out whether it caused the lookup. I was hoping...

  • RE: Looking into Forced Parameterization

    An old version of the site was written that way however we moved all CUD to procs for security reasons as it meant we didn't have to grant write access...

  • RE: Looking into Forced Parameterization

    The server is a dedicted server with just this system running on it.

    The biggest SITE_JOBS_INDEX table has 2299 rows, the biggest SITE_CATEGORY_MATRIX 119,000.

    I have a job that monitors blocked processes...

  • RE: Looking into Forced Parameterization

    The page in question loads fast and runs okay 98% of the time. The query is indexed correctly and I am looking into the query plans. The problem only occurs...

  • RE: Looking into Forced Parameterization

    Also another aside going back to the difference between SIMPLE and FORCED. I set the DB to SIMPLE mode and then ran a couple of very simple queries where the...

  • RE: Looking into Forced Parameterization

    Just to let you know that it is possible to set the DB to simple mode and run that particular query as forced using a plan guide.

    I just ran a...

  • RE: Looking into Forced Parameterization

    Yes its an adHoc query on an old site ASP classic! being passed to an SQL 2005 DB.

    The system in general runs very well and handles quarter million hits a...

  • RE: Looking into Forced Parameterization

    Well I've been testing on our dev box to ensure that its worth doing and that we currently aren't benefiting from cached plan re-use for this particular page/query and it...

  • RE: Looking into Forced Parameterization

    Yes running the same query from different browser instances (IE and FF3) with different param values and the same plan is shared.

    Looking at the differences between columns in the output...

  • RE: Looking into Forced Parameterization

    Yes you are right it was due to the same values being submitted. I changed the values between calls and it causes new plans. The value of objType = AdHoc...

  • RE: Looking into Forced Parameterization

    The problem was that the dbid column was returing NULL values so the result I was looking for was not being returned. I modified the query to

    SELECTtext,*

    FROMsys.dm_exec_query_stats qs

    CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle)...

  • RE: Looking into Forced Parameterization

    I've read the BOL and the site in question does seem suitable as the main page getting hit is using a static SQL string thats being executed and none of...

  • RE: Writing Dynamic Stored Procedure

    rafidheenm

    notice in my post I said "I used to" as in

    "I used to use lots of CASE statements and IF branches to handle queries that needed to be dynamic but...

  • RE: Writing Dynamic Stored Procedure

    Yes that link is a very good article that covers all the various methods and a good discussion of recompilation. As per my first example I used to write my...

Viewing 15 posts - 91 through 105 (of 205 total)