Viewing 14 posts - 16 through 29 (of 29 total)
Hi Jeff,
I might consider using something like this approach
CREATE TABLE [dbo].[Months](
[MonthName] [nvarchar](10) NOT NULL,
[MonthCalendarSequence] [int] NOT NULL,
[MonthFinancialSequance] [int] NOT NULL
) ON [PRIMARY]
Insert into Months Values ('January',1,10)
Insert into Months Values ('February',2,11)
Insert...
November 15, 2010 at 1:50 am
weitzera and scott,
Thank you for the explanations, I have a much better understanding of "float" approximation issues now
August 27, 2010 at 3:54 am
Yip, worrying indeed.
Lets hope sanity prevails and they leave this feature alone
August 26, 2010 at 3:15 am
My Local BoL 2005 quote follows
"Using SET ROWCOUNT will not affect DELETE, INSERT, and UPDATE statements in the next release of SQL Server. Avoid using SET ROWCOUNT together with DELETE,...
August 26, 2010 at 3:02 am
Nice question, made me think about what "approximate" means.
Is always true to say, as in the explanation, that because the value of float variable is approximate, it can never =...
August 26, 2010 at 2:50 am
I guess that you're talking about a SQLServer-supplied auto-increment IDENTITY column?
If so, would now be a good time to discover the real key of the referenced table?
Otherwise, make sure you...
June 25, 2010 at 3:20 am
Hi,
You might like to consider using Euclid's Algorithm to find the Highest Common Factor (Greatest Common Divisor)
CREATE FUNCTION CalculateRatio(@numerator int, @denominator int)
RETURNS nvarchar(max)
AS
BEGIN
declare @ratio nvarchar(max)
declare @greatestcommondivisor int
declare @x...
June 23, 2010 at 4:06 am
This might also be a good place to start.
DECLARE @msg nvarchar(max)
set @msg = 'Merged Facility Id:6644- Patient Id:072505 with Facility Id:6645- Patient Id: 072506'
Select replace(replace(replace(replace(@msg, ' Patient Id: ', ','),...
June 4, 2010 at 4:14 am
Cute problem. Not really a real world situation though, a department will not always have a manager and being a manager is a role of an employee
June 3, 2010 at 3:36 am
does it help if you supply a port number (1414 or something) ?
October 8, 2009 at 2:46 am
Agreed, those extra little enhancements are really useful in most situations, and customizable as well.
Different countries having different public holidays is a good example.
One-time Setup and Simple Selects were the...
August 25, 2009 at 7:53 am
Not actually my article, but one I found.
The idea behind it is to incur a single , perhaps large, set-up cost and from then on just use the set-based capabilites...
August 25, 2009 at 6:16 am
Is there a reason why this would be better than selecting rows from a Calendar table?
Have a look at:
August 25, 2009 at 2:56 am
Viewing 14 posts - 16 through 29 (of 29 total)