Who is online?  0 guests and 0 members
Home  »  Blogs  »  BradSchacht: October 2010

Communifire Blogs

Blogs RSS Feed

BradSchacht :October 2010 postings

BradSchacht

Working Around Parameter Sniffing

10/20/2010 by BradSchacht  -  Comments: 5  -  Views: [4807]

Normal 0 false false false EN-US X-NONE X-NONE First and Foremost: What Is Parameter Sniffing? When a stored procedure is executed the first time the query analyzer compiles the stored procedure and creates an execution plan. This part of this involves looking at the parameters to see how they are used and optimizing the execution plan. This plan is then cached and used in subsequent runs of the stored procedure. The issue here is what if you pass in a parameter that brings back 10 records on th...

Read More

BradSchacht

Multiple CTEs in One Query

10/20/2010 by BradSchacht  -  Comments: 6  -  Views: [6239]

Normal 0 false false false EN-US X-NONE X-NONE CTEs are a great thing to use in your query. They are an excellent way to consolidate code and make it readable as well as create a “view” inside of your code. One great thing I have used them for many times was to pick out the max date associated with a set of key values. So let’s say there is a table that has a column called ID, Quantity and Date. And in this table there are duplicate IDs with different quantities and dates associated with them. S...

Read More

BradSchacht

Pre-Compiled Script Task Error in SSIS 2005

10/20/2010 by BradSchacht  -  Comments: 0  -  Views: [4120]

Normal 0 false false false EN-US X-NONE X-NONE There is an issue with script tasks in SSIS 2005 that could come up occasionally. It is generally an issue that shows up in a 64-bit environment where the script can’t be pre-compiled. The error that will show up states that “The task is configured to pre-compile the script, but binary code is not found.” There is not a fix for this inside SSIS as you can’t set the script to Pre-compile false as the error will just change to the script can’t be comp...

Read More

Page 1 of 1 (3 items)