Viewing 15 posts - 2,461 through 2,475 (of 3,543 total)
Try this
CREATE FUNCTION dbo.fn_CalculateMinutes
(@DateFrom datetime, @DateTo datetime)
RETURNS int
AS
BEGIN
DECLARE @hFrom int, @hTo int, @mFrom int, @mTo int, @hol int
SET @DateFrom =...
November 15, 2004 at 5:07 am
Try this
CREATE FUNCTION dbo.fn_CalculateHours
(@DateFrom datetime, @DateTo datetime)
RETURNS int
AS
BEGIN
DECLARE @hFrom int, @hTo int
SET @DateFrom = (CASE DATEPART(weekday,@DateFrom)
WHEN 1 THEN...
November 11, 2004 at 9:01 am
You cannot ORDER BY on a column alias
try changing GROUP_ID to #groups.[ID] in the ORDER BY clause
November 10, 2004 at 6:59 am
Why run around the block when you can nip through the alley
November 8, 2004 at 7:14 am
SELECT STUFF(@postcode,LEN(@postcode)-2,0,' ')
November 8, 2004 at 6:58 am
SERVERPROPERTY in BOL has this
The ServerName property of the SERVERPROPERTY function and @@SERVERNAME return similar information. The ServerName property provides the Windows NT server and instance name that together make...
November 8, 2004 at 6:48 am
Make sure MSDTC (Support Services / Distributed Transaction Coordinator) is started.
November 8, 2004 at 4:49 am
First, your first post syntax is correct (I assume the comma between sa and Password is a typo, should be semi-colon). AFAIK there are only two reasons for the login...
November 8, 2004 at 2:32 am
select [col]
from
order by cast(
(case when patindex('%[a-z]%',[col]) = 0
then [col]
else left([col],patindex('%[a-z]%',[col])-1)
end) as int),[col]
November 5, 2004 at 6:49 am
Generally I agree with you, the only difference is in the Merge Join, either a 'Right Outer Join' or 'Right Anti Semi Join'.
It all depends on volume, the higher the...
November 4, 2004 at 8:19 am
INSERT INTO Exceptions
(
RecordType,
CustCode,
BalanceOutstanding,
PastDue,
CurrentDue,
RepayAmount,
SettlementAmount,
DateApproved,
LastPmtDate,
LastPmtAmount
)
SELECT
a.RecordType...
November 4, 2004 at 7:46 am
It's only easy when you know the answer
November 4, 2004 at 6:48 am
Nice one Scott , your right, I thought of that but only after I posted
Even better...
November 3, 2004 at 2:12 am
How many merchants are there?
How long does the whole process take? (you state > 30 mins)
Based on my last post, if there are 2,000 merchants and it takes 30 mins...
November 3, 2004 at 2:04 am
If you are inserting into a table and creating on the fly then I assume you are already using dynamic sql or have an if statement for each merchant.
I agree with...
November 2, 2004 at 6:49 am
Viewing 15 posts - 2,461 through 2,475 (of 3,543 total)