Viewing 15 posts - 4,246 through 4,260 (of 8,761 total)
TomThomson (11/23/2015)
Nice question.But your "not necessarily recommended" is a bit less emphatic than my expression would be if I encountered something like this in a code review. :rolleyes:
+1
😎
Certainly drop the...
November 24, 2015 at 12:30 am
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @SAMPLE TABLE (ID CHAR(4),Salary INT,Employee_Tax1 INT,Employee_Tax2 INT,Employer_Tax1 INT,Employer_Tax2 INT);
INSERT INTO @SAMPLE(ID,Salary,Employee_Tax1,Employee_Tax2,Employer_Tax1,Employer_Tax2) VALUES ('A001',1000,120,95,125,105);
SELECT
X.ID
,X.Earn_Ded
,X.Employer_Tax
FROM @SAMPLE S
CROSS APPLY
(
...
November 24, 2015 at 12:25 am
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'tempdb..#t') IS NOT NULL DROP TABLE #t;
create table #t
(
id int,
col1 decimal(18,2)
)
go
insert into #t (id,col1)
values...
November 24, 2015 at 12:12 am
Ed Wagner (11/22/2015)
I think the spam bomb went off again today.
I guess you are not referring to TT's posts:-D
😎
November 22, 2015 at 1:48 pm
This whole thing doesn't make sense unless more information is provided, memory configurations and specs are relative to all the work the server has to perform, not exceptions like occasional...
November 21, 2015 at 12:03 pm
ricardo_chicas (11/20/2015)
November 20, 2015 at 9:07 am
First thing that comes to mind is parameter sniffing and local variables, suggest you read up on the subject, plenty of good articles around covering this.
😎
November 20, 2015 at 7:21 am
rameelster (11/20/2015)
but the database instance contain 2 databases each with size 240 GB and 714 GB respectively. Dont you think that 80 percent memory is very less.
No I don't...
November 20, 2015 at 6:29 am
rameelster (11/20/2015)
November 20, 2015 at 4:53 am
Quick suggestion
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'tempdb..#Test') IS NOT NULL DROP TABLE #Test;
Create Table #Test
(id int identity,C1 bit , C2 Bit , C3 Bit)
insert into #Test Values (0,0,0)
...
November 20, 2015 at 2:54 am
Jeff Moden (11/19/2015)
SELECT {fn NOW()};
SELECT {fn CURRENT_DATE()} + ' ' + {fn CURRENT_TIME()};
EXEC...
November 20, 2015 at 1:16 am
Luis Cazares (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Luis Cazares (11/19/2015)
I feel excluded.How come?
😎
You left my method out
Couldn't fit it in the select statement, too many EXEC'y thingies in there, any alternatives?
😎
November 19, 2015 at 2:47 pm
Alvin Ramard (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Alvin Ramard (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Luis Cazares (11/19/2015)
I feel excluded.How come?
😎
Luis, I'll include you with me. 🙂
That looks way too close to a union all statement...
November 19, 2015 at 2:45 pm
Alvin Ramard (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Luis Cazares (11/19/2015)
I feel excluded.How come?
😎
Luis, I'll include you with me. 🙂
That looks way too close to a union all statement for comfort:-P
😎
November 19, 2015 at 2:25 pm
Luis Cazares (11/19/2015)
I feel excluded.
How come?
😎
November 19, 2015 at 1:59 pm
Viewing 15 posts - 4,246 through 4,260 (of 8,761 total)