Viewing 15 posts - 7,186 through 7,200 (of 8,753 total)
xsevensinzx (9/3/2014)
Eirikur Eiriksson (9/3/2014)
No need to go through all this trouble, just give the drive to the ops team and it will be lost forever:crazy:
😎
Shots fired! :w00t:
Casualties?
😎
September 3, 2014 at 11:00 am
A non-typecast version
😎
USE tempdb;
GO
declare @eventid table(Eventid int);
insert into @eventid values(31206),(31206),(31206),(31206),(31206),(31207),(31207);
SELECT
E.Eventid
,E.Eventid * POWER(10,2) + ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) AS New_Eventid -- two...
September 3, 2014 at 10:58 am
eniacpx (9/3/2014)
September 3, 2014 at 10:52 am
Quick solution, subtract the modulo of 0.01
😎
USE tempdb;
GO
DECLARE @MyPay DECIMAL(18,9);
SET @MyPay = 258.235543210;
SELECT @MyPay = @MyPay - @MyPay % 0.01
SELECT @MyPay
SELECT CAST(@MyPay AS decimal(5,2))
Results
---------------------------------------
258.230000000
(1 row(s) affected)
---------------------------------------
258.23
(1 row(s) affected)
September 3, 2014 at 10:43 am
I share Sean's concern here, at least there should be a check for the key-number existence and adjustment if there is a key combination collision.
😎
September 3, 2014 at 10:14 am
TomThomson (9/3/2014)
Luis Cazares (9/3/2014)
xsevensinzx (9/3/2014)
Koen Verbeeck (9/3/2014)
xsevensinzx (9/3/2014)
September 3, 2014 at 10:11 am
Quick thought, check the lock and sys.dm_os* statistics, chances are that "popular" locks are using up most available Workers, causes connection havoc.
Search keywords: Workers, Scheduling Options, SQLOS, sys.dm_os*
😎
September 3, 2014 at 9:56 am
Quick thought, multiply the EventID with 10^(num digits) and add the digits (sub ids)
😎
September 3, 2014 at 9:45 am
Quick thought, there is something missing in the code, check that all variables are declared and initialized.
😎
September 3, 2014 at 7:55 am
crazy_new (9/3/2014)
September 3, 2014 at 4:32 am
Did a quick little testing, see the results, DDL, data generator and test code below. Code also attached.
Feel free to play around and improve 😉
😎
-----------------------------------------------------------------------------------
Dense set: 1000000 (10000 customers x...
September 3, 2014 at 3:39 am
Koen Verbeeck (9/3/2014)
Eirikur Eiriksson (9/2/2014)
Quick thought, if the source structure is changed, the whole data pipeline (data flow path) has to be updated, including the destination definition.😎
And even more important,...
September 3, 2014 at 2:15 am
Lynn Pettis (9/2/2014)
AARRRGGGGGGG!!!!!!!!!!! Someone fire the man. He has no business in this business.
Think that here is a proper use for a TERMINATOR:-D
😎
September 2, 2014 at 3:16 pm
Viewing 15 posts - 7,186 through 7,200 (of 8,753 total)