Viewing 15 posts - 1,021 through 1,035 (of 1,957 total)
Paul White (2/14/2013)
Here you go:
Thanks Paul, much appreciated. Putting my learning head on now 🙂
February 14, 2013 at 8:15 am
Paul White (2/13/2013)
mister.magoo (2/13/2013)
this version packs 70,000 requests in about 13 seconds on my desktop.
Debug version SQLCLR procedure (without bulk copy) loading the destination table: 1.4s on the same data...
February 14, 2013 at 2:02 am
anthony.green (2/13/2013)
Lowell (2/13/2013)
side note to mister.magoo: which SSMS add on is that that lets you group totals from the results grid?
I belive it is the custom one he is writing...
February 13, 2013 at 5:46 pm
I knew I had rushed it earlier 😉 - this version packs 70,000 requests in about 13 seconds on my desktop.
Thanks for the test harness Dwain, I have borrowed and...
February 13, 2013 at 5:43 pm
Thanks for the feedback, glad to help.
February 13, 2013 at 12:13 pm
:w00t: You're welcome, but really don't use that for anything important..you will get bitten eventually 😎
February 13, 2013 at 12:12 pm
dubem1-878067 (2/12/2013)
I need to extract records between two dates
this code will do the job
where convert(datetime,...
February 12, 2013 at 5:24 pm
Sean is right, however in this one case you can make it seem like it works....
SELECT *
FROM (
SELECT*,row_number() OVER(PARTITION by TType ORDER BY TTime,TFunction,TStatus) AS rn
FROMMyTransactions
) a
ORDER BY rn,TTime, TType,...
February 12, 2013 at 5:20 pm
Good job on the test data and description...:-D
SELECT
[Employee Number],
X.[Dated],
MIN(CASE [Clock In or Out] WHEN 'Clock In' THEN CONVERT(DATETIME,[Date]) ELSE CONVERT(DATETIME,'31 dec 2199') END) AS [Clock In],
MAX(CASE [Clock In or...
February 12, 2013 at 5:07 pm
No cursors...but a WHILE LOOP...so :hehe:
SELECT
'Starting' -- just to get my first rowcount of 1 🙂
WHILE @@ROWCOUNT=1
INSERT tblScheduledRequests(RequestID,ScheduleID,RequestChunkStartTime)
SELECT TOP 1...
February 12, 2013 at 4:46 pm
sku370870 (2/10/2013)
DECLARE @LastOne bit = 0
CREATE TABLE #tblTasks
(
TaskID int,
...
February 10, 2013 at 4:34 pm
Is this a matrix report? what groups do you have for rows and columns?
February 10, 2013 at 11:18 am
skgudi2009 (2/10/2013)
If {Reportname.value} = 'ABC' And {Reportname.value} = 'S' Then
'Amount1'
Else If {Reportname.value} = 'BAC'...
February 10, 2013 at 3:10 am
SELECT
DayNumber = nd.value('(Day/text())[1]','smallint')
, IsHoliday = nd.value('(Day/@IsHoliday)[1]','varchar(5)')
, Reason = nd.value('(Day/@Reason)[1]','varchar(50)')
, ActivityID = nd.value('(ActivityID/text())[1]','int')
, ActivityDescription = nd.value('(ActivityDescription/text())[1]','varchar(512)')
, StartDate = nd.value('(StartDate/text())[1]','date')
, StartTime = nd.value('(StartTime/text())[1]','char(9)')
, EndDate = nd.value('(EndDate/text())[1]','date')
, EndTime = nd.value('(EndTime/text())[1]','char(9)')
,...
February 7, 2013 at 9:45 am
Viewing 15 posts - 1,021 through 1,035 (of 1,957 total)