Viewing 15 posts - 19,171 through 19,185 (of 26,484 total)
jim.rasmussen (8/14/2009)
DECLARE
@HMY AS INT,
@STARTDATE AS DATETIME
SELECT
@HMY = HMY,
@STARTDATE = DTSTART
FROM
MM2WODET
WHERE
DTFINISH IS NULL AND
DTSTART IS NOT NULL AND
HPERSON = @USERHMY
IF @HMY > 0
UPDATE MM2WODET SET
DTFINISH =...
August 14, 2009 at 2:09 pm
Deleted -- Gus's answer was more accurate.
August 14, 2009 at 2:04 pm
Jeff Moden (8/14/2009)
gah (8/14/2009)
Plase excuse my ignorance, but how much is a "crore"?does one "crore" represent ten million (10,000,000) ?
gah
From WikiPedia.com...
A crore (Hindi: ?????) (often abbreviated cr) is a...
August 14, 2009 at 2:00 pm
jim.rasmussen (8/14/2009)
When I execute this...select DATEDIFF("n",'08/14/2009 11:15',GETDATE())
the results is 195
when I execute this...
select DATEDIFF("n",'08/14/2009 11:15',GETDATE())/60
the result is 3, but 195/60 = 3.25
Why is this?
TIA
Jim
Integer math. change the 60 to...
August 14, 2009 at 1:55 pm
You need to lookup SAVE TRANSACTION in BOL (Books Online) You need to create a TRANSACTION SAVE point in the nested transactions if you want to be able to...
August 14, 2009 at 1:05 pm
Not sure what is going on with your system either. i just started up a job on my system that has multiple data flow tasks running in parallel, and...
August 14, 2009 at 1:00 pm
Interesting, I just checked on my x64 development server and there is an x64 version of DTExec and an x86 version of DTExec on the system.
August 14, 2009 at 12:53 pm
Looks like you may need to implement a sliding window on the table and write a few maintenace routines to implement what you are looking to accomplish. Not sure...
August 14, 2009 at 12:24 pm
jrw39 (8/14/2009)
August 14, 2009 at 11:35 am
Here is some code to help you get started. Hopefully the article I had published on sswug.org will be republished here on SSC sometime in September.
August 14, 2009 at 11:24 am
brij (8/14/2009)
I can create partition based on Month or day of the year. But I want partition based on...
August 14, 2009 at 11:06 am
You can actually find this in BOL (Books Online, the SQL Server Help System). You can access it from SSMS by pressing the {f1} function key.
here is the relevant...
August 14, 2009 at 10:57 am
Actually, in SQL Server 2005 this may work faster:
select
t.[name] TableName,
t.create_date,
t.modify_date,
sum(p.[rows]) RowCnt
from
...
August 14, 2009 at 10:26 am
hi_abhay78 (8/14/2009)
August 14, 2009 at 10:12 am
Not too hard, here is the code I came up:
select
Account,
sum(case when Type = 'A' then Amount else 0 end) as TypeA,
...
August 14, 2009 at 9:55 am
Viewing 15 posts - 19,171 through 19,185 (of 26,484 total)