Viewing 15 posts - 7,651 through 7,665 (of 10,144 total)
LadyG (7/15/2010)
How do I create a date table? Here's what the function does below
CREATE FUNCTION [dbo].[fn_ConvertToBusinessDate] (@Date DATETIME) RETURNS DATETIME AS
BEGIN
DECLARE @RollOverTime DATETIME
SELECT @RollOverTime = [RollOverTime]
FROM [dbo].[ac_Estate]
SELECT @Date =...
July 19, 2010 at 4:11 am
jon pill (7/16/2010)
I don't know about connection pooling either, but I will read up on...
July 16, 2010 at 7:28 am
Eugene Elutin (6/30/2010)
Actually, recursive CTE is not far from RBAR (can be even worse in performance)...
Not strictly true. A good example of RBAR would be performing a running totals update...
July 16, 2010 at 7:22 am
Paul White NZ (7/15/2010)
Paragordius tricuspidatus(today's random worm)
Haven't done that for a while 🙂
Isn't nature wonderful? 😀
July 16, 2010 at 2:37 am
Paul White NZ (7/15/2010)
Jeff Moden (7/15/2010)
Can you good folks give me an example of when IDENTITY will not work?
When you need a sequence across several tables
When you need to pre-allocate...
July 16, 2010 at 2:17 am
jon pill (7/15/2010)
I keep the connection open at the...
July 15, 2010 at 9:23 am
How long does the query take to run?
July 15, 2010 at 7:32 am
,CASE
WHEN DATEADD (year, 1, MAX(dd.ActualDate)) >= GETDATE() AND fo.Product IN (62,64) THEN 'Upgrade_Year'
WHEN DATEADD (month, 3, MAX(dd.ActualDate)) >= GETDATE() AND fo.Product IN (61,63) THEN 'Upgrade_3Months'
ELSE 'Upgrade_Basic'
END...
July 15, 2010 at 7:24 am
itsaditi2001 (7/15/2010)
July 15, 2010 at 6:53 am
jon pill (7/15/2010)
drop table #TodayRecordsIs this the fastest way, i will have over a 100 lines and will be calling sql every 500ms?
Why would you want to run the code...
July 15, 2010 at 6:42 am
tosscrosby (7/14/2010)
Dyspnea
Palpitations
Chest pain or discomfort
Choking or smothering sensations
Vertigo or unsteady feelings...
July 15, 2010 at 2:14 am
jon pill (7/14/2010)
The same with duplicates, it wont affect the hi...
July 14, 2010 at 10:18 am
jon pill (7/14/2010)
Upvolume and DownVolume
Every day the Totaltrades field starts at zero and cumulates throughout...
July 14, 2010 at 9:51 am
jon pill (7/14/2010)
you right that cant be it either
Describe it in words. Be nice!
July 14, 2010 at 9:39 am
jon pill (7/14/2010)
SELECT min(upvolume),min(downvolume),min(upvolume),min(downvolume)FROM
(SELECT upvolume,downvolume,TotalTrades from DBVaskVbid WITH (NOLOCK) where BarStamp >= '7/14/2010') as XDtable
WHERE TotalTrades
BETWEEN
(SELECT MAX(TotalTrades)FROM DBVaskVbid WITH (NOLOCK) where BarStamp >= '7/14/2010') -1000
AND
(SELECT...
July 14, 2010 at 8:23 am
Viewing 15 posts - 7,651 through 7,665 (of 10,144 total)