Viewing 13 posts - 1 through 13 (of 13 total)
I considered the same solution Peter L, but encountered the problem of lopping off leading zeros. That's actually a common mistake that is included in report tester scripts. These aren't...
August 25, 2006 at 10:02 am
In the example provided above by RDR'us, instead of using the final SELECT proposed, you could use the following two queries with a performance gain of approximately 23.11%! How? When...
August 24, 2006 at 2:21 pm
Step #4 is an excellent set-based method for determining the end_balance for the current month. May I also suggest that you eliminate the column "amt_change" and use "SUM(credit_amt + debit_amt)"...
August 24, 2006 at 1:15 pm
San,
Actually the best solution is the following:
DROP TABLE refNo; DECLARE @email NVARCHAR(256), @message NVARCHAR(2048), @subject NVARCHAR(128); SELECT @email = 'boss@yourcompany.com', ...
August 24, 2006 at 12:43 pm
Aw yeah!!! Well, I took care of the inserting missing rows dealio. With some freakin' crazy idea that hit me upside the head. *The update calculations have dependencies on other...
August 24, 2006 at 12:13 pm
Are you going to need to process the "end_balance" every time? Can you initialize with NULL and then ignore on subsequent runs, or can it change?
August 24, 2006 at 11:22 am
Being a programmer, I like to tackle problems like this with cursors first and then massage it into a set-based (a.k.a. "good" or "real") solution.
With that in mind, here you...
August 24, 2006 at 11:03 am
I should have noted that users are using connection pooling on shared connections. Primarily web applications. So, SQL Server user and process functions will not properly identify a user.
The column...
August 24, 2006 at 10:33 am
In my experience, picky programmers are good programmers, even when their points can seem agitating.
August 10, 2006 at 11:26 pm
I discovered that the table hint "fastfirstrow" is being deprecated in future versions of SQL Server, but did not find any documentation comparing the feature with similiar features.
For my rather...
August 10, 2006 at 1:29 am
Okay... I've been around SQL Server for 7 years and had to figure out that "BOL" stood for Books on Line (sad, but true). Apparently the time to look...
August 10, 2006 at 1:26 am
Also... consider using RECOMPILE in the stored proc if the server would be better off not trying to re-use an execution plan. You could also use the query hint for...
August 8, 2006 at 5:50 pm
Here was the result I came up with... Jeff: I attempted to follow your notes and appreciated the test case examples. However, I did have difficulty translating the...
August 8, 2006 at 11:47 am
Viewing 13 posts - 1 through 13 (of 13 total)