Viewing 15 posts - 6,271 through 6,285 (of 6,486 total)
...His and hers monogrammed backscratchers for me and Mrs. M to celebrate the 7-year itch celebration?
September 21, 2007 at 9:52 am
....where cast(year1 as char(4))+right('00'+cast(periodid as varchar(2)),2)<='200703')
OR
...Where (year1<2007 OR (year1=2007 AND periodid<=3))
September 21, 2007 at 9:40 am
Second version: should do better on large sets, as long as you don't have incredibly long "unbroken streaks". Same remark re: indexes.
this one is iterative in nature, doing n update...
September 21, 2007 at 8:48 am
This should be a functional one. Not a well performing one on large set (because of the nested subquery). But it does get you out of the recursive business.
It...
September 21, 2007 at 8:14 am
..or why they can't deal with a "standard format" file + something like the output from a sp_help <table>.
Maybe I'm biased, but every time I hear "fixed width file" I...
September 20, 2007 at 4:07 pm
Okay - I give
. I'm not understanding how you're counting, because your sample numbers aren't making sense relating to your sample data.
Caffeine will...
September 20, 2007 at 3:47 pm
you're on the right track - here's a rough checklist:
September 20, 2007 at 3:44 pm
As in:
select p.KPAIDS_NO, [TotalCurrentDelivery]
, Year_Of_DeliveryCount
from
Patient_Demographics p
left outer join
(
September 20, 2007 at 2:04 pm
Denby - you need to create the counts in separate sub-queries FIRST, then join them. If you join them first - your counts will be wrong (most likely - for...
September 20, 2007 at 1:56 pm
From the FAQ @ Microsoft confirming Pam's point:
| What release of SQL Server 2005 will run on Windows Vista? |
September 20, 2007 at 11:56 am
Wow...that's going to hurt. That complicated of a dynamic SQL statement is bound to not do so hot performance-wise. You'll get a LOT more performance if you created a stored...
September 20, 2007 at 10:44 am
Goes to show how important coffee is to the IT industry. Last night - I spent most of an hour scratching my head, wondering what new-fangled item Jeff was referring...
September 20, 2007 at 9:06 am
1. As we cannot afford a log backup (as there is no freespace left) taking a full backup and then truncating the log and shrink the logfile is a safe...
September 20, 2007 at 8:10 am
You're trying to sneak some dynamic SQL in. You'd need to build your entire INSERT statement, openrowset and all, in a string variable, and then use the
EXEC(@var)
command to...
September 20, 2007 at 7:59 am
I'm not understanding how the call duration is getting you accurate results, but that's a different discussion. A few things jump out at me:
September 20, 2007 at 7:47 am
Viewing 15 posts - 6,271 through 6,285 (of 6,486 total)