Viewing 15 posts - 2,461 through 2,475 (of 3,544 total)
Self taught, mostly by practice and looking at samples and experience. BOL and web search helps and looking at forums like this one. This forum has a lot of articles...
November 16, 2004 at 2:08 am
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
Viewing 15 posts - 2,461 through 2,475 (of 3,544 total)