Viewing 15 posts - 23,026 through 23,040 (of 59,099 total)
P74 (8/3/2014)
I need help with some code!
Scenario:
I know the ContractNumber
I know the StartDate of a contract (always in the past)
I know the RentalAmount (fixed for the duration)
I know the RentalFrequency...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2014 at 1:37 pm
For anyone that would like to do their own testing, here's the test table I've been using for all of this...
WITH cteRandomDT AS
(
SELECT TOP 1000000
...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2014 at 9:58 am
TomThomson (8/3/2014)
Jeff Moden (8/2/2014)
Grant Fritchey (7/16/2014)
You mean you didn't flip the infinity switch on your tempdb? That developer is right, you have it configured incorrectly.
Heh... what's really cool about Grant...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2014 at 9:53 am
WhiteLotus (8/3/2014)
Jeff Moden (8/1/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2014 at 9:48 am
Grant Fritchey (7/16/2014)
You mean you didn't flip the infinity switch on your tempdb? That developer is right, you have it configured incorrectly.
Heh... what's really cool about Grant is that he...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 7:46 pm
Erland Sommarskog (8/2/2014)
Jeff Moden (8/2/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 7:07 pm
Eirikur Eiriksson (8/2/2014)
The datetime format is still the same upto and including 2014.😎
Thanks Eirikur. I've never looked at it but figured it might be so. That does, however,...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 5:13 pm
I agree that SEQUENCE has the advantage of being able to cover multiple tables and that IDENTITY requires SET IDENTITY INSERT if you want to update the identity column but,...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 2:36 pm
Ed Wagner (7/31/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 1:21 pm
Here's what I'd use to solve this problem on my systems because it's short and accurate with the accuracy limits of DATETIME. No... it's not ANSI/ISO compliant and no......
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 12:40 pm
Sean Lange (7/31/2014)
Sql server stores datetime as decimal. You can easily cast a datetime to decimal. But what is the point? What are you trying to do with it?
I use...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 12:18 pm
Eirikur Eiriksson (8/2/2014)
Update codeUSE tempdb;
GO
SET NOCOUNT ON;
DECLARE @ITER INT = 0 ;
DECLARE @COUNT INT = 100000;
DECLARE @NextId INT = 0 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 9:11 am
thejordans21 (8/1/2014)
Here is a brief snapshot of it:PLANTPLANT_DESCVENDOR
NOPENULLNOPE
7010Coquitlam DCPR1
NOPENULLNOPE
NOPENULLNOPE
NOPENULLNOPE
NOPENULLNOPE
NOPENULL1014435
NOPENULL1014435
NOPENULL1014435
NOPENULLNOPE
NOPENULLNOPE
NOPENULLNOPE
NOPENULL1014435
NOPENULL1014435
NOPENULL1014435
What I need to happen is that where...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 12:27 am
tshad (7/31/2014)
I need to get the value and update it (nextID +...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2014 at 12:14 am
Ah... scratch one of those questions. I see that the first section has quite a few extra line types. I do, however, still need to know if the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 1, 2014 at 11:25 pm
Viewing 15 posts - 23,026 through 23,040 (of 59,099 total)