Viewing 15 posts - 7,186 through 7,200 (of 8,760 total)
Alvin Ramard (9/3/2014)
Koen Verbeeck (9/3/2014)
xsevensinzx (9/3/2014)
September 3, 2014 at 2:19 pm
Luis Cazares (9/3/2014)
Koen Verbeeck (9/3/2014)
Bah. I couldn't resist it.Someone call the Relational Protection Agency, we have an offender...oh, wait. 😀
Reminds me of an old story, once upon a time the...
September 3, 2014 at 2:08 pm
Quick solution (if I got it right 😉
😎
USE tempdb;
GO
;WITH BASE_DATA(Ticket,[User],[Priority]) AS
(SELECT Ticket,[User],[Priority] FROM
( VALUES
('A','ME' , 1)
...
September 3, 2014 at 1:57 pm
Ray K (9/3/2014)
Eirikur Eiriksson (9/3/2014)
Ray K (9/3/2014)
Eirikur Eiriksson (9/3/2014)
September 3, 2014 at 1:35 pm
Ray K (9/3/2014)
Eirikur Eiriksson (9/3/2014)
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.😎
Folks, you're...
September 3, 2014 at 12:51 pm
CELKO (9/3/2014)
I have an EventID that may have many sub events. ..How can I check what the EventID is, then concatenate a sequence number by the EventID?
Why are you...
September 3, 2014 at 12:39 pm
Koen Verbeeck (9/3/2014)
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 11:05 am
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
Viewing 15 posts - 7,186 through 7,200 (of 8,760 total)