Viewing 15 posts - 391 through 405 (of 2,458 total)
mishka-723908 (10/21/2016)
We are not sure yet whether to create it as clustered or not. This is something we will need to test with.
The deletes will...
-- Itzik Ben-Gan 2001
October 22, 2016 at 10:35 am
mishka-723908 (10/21/2016)
-- Itzik Ben-Gan 2001
October 21, 2016 at 9:32 pm
DECLARE @yourTable TABLE(Name varchar(100), Salary money, dt date);
INSERT @yourTable VALUES
('SAM-1',$67,'20161021'),
('SAM-2',$34,'20161021'),
('SAM-1',$39,'20161020'),
('SAM-2',$45,'20161020');
SELECT
Name,
[21-10-2016] = SUM(CASE dt WHEN '20161021' THEN Salary END),
[20-10-2016] = SUM(CASE dt WHEN...
-- Itzik Ben-Gan 2001
October 21, 2016 at 9:01 pm
chocthree (10/21/2016)
-- Itzik Ben-Gan 2001
October 21, 2016 at 3:44 pm
Eric M Russell (10/21/2016)
Ed Wagner (10/21/2016)
Phil Parkin (10/21/2016)
chocthree (10/21/2016)
Ok, here is the deal. I'm a little long in the tooth...
-- Itzik Ben-Gan 2001
October 21, 2016 at 1:31 pm
let me emphasize the recovery. You should practice restoring from a backup to a non-production database. This makes sure your backups are viable so you can restore a database...
-- Itzik Ben-Gan 2001
October 21, 2016 at 1:22 pm
I have never heard that SQL is dying. You are the first I have heard say that. While there is RDBMS I would imagine SQL being around. I can't see...
-- Itzik Ben-Gan 2001
October 21, 2016 at 1:14 pm
I learned about this not too long ago and think it's a good thing. Grant Fritchey touches on this in his excellent book, SQL Server Execution Plans (page 162):
Since the...
-- Itzik Ben-Gan 2001
October 21, 2016 at 10:31 am
I have not ran SQL 2016 on Windows Server 2016 but Microsoft is pretty good about warning you during the install if the version is supported on the OS. I...
-- Itzik Ben-Gan 2001
October 20, 2016 at 2:24 pm
I'm thinking you could use ABS or IIF (ABS being the easiest and most efficient)
ABS:ABS(([Measures].[FMSA Monthly Activity].CurrentMember))
IIF:IIF
(
[Measures].[FMSA Monthly Activity].CurrentMember >= 0,
[Measures].[FMSA Monthly Activity].CurrentMember,
[Measures].[FMSA Monthly...
-- Itzik Ben-Gan 2001
October 20, 2016 at 1:45 pm
camiloecheverry11 (10/20/2016)
Without any DDL, sample data or anything about your data...
-- Itzik Ben-Gan 2001
October 20, 2016 at 1:24 pm
Taking what Luis put together, you can hide these rows by adding an isVisable column to your dataset. Then, for the Row Viability setting in SSRS use an expression that...
-- Itzik Ben-Gan 2001
October 20, 2016 at 11:38 am
Easy.
Add a text box and for it's value use this expression:
=COUNT(Fields!{some non-nullable field from your dataset}.Value, "{your dataset}")
-- Itzik Ben-Gan 2001
October 19, 2016 at 1:37 pm
I know that this is a few weeks old but since there was no answer:
So will it be easier if I translate Cognos SQL queries and create SQL views...
-- Itzik Ben-Gan 2001
October 19, 2016 at 1:23 pm
Sqlsavy (10/19/2016)
I've attached query plan with resrticated and unlimitted memory please have a look.
Thanks
query:
UPDATE dbo.table1
SET table1.field = somevalue
FROM dbo.table1 AS ABC
INNER JOIN dbo.table2 AS xyz...
-- Itzik Ben-Gan 2001
October 19, 2016 at 9:46 am
Viewing 15 posts - 391 through 405 (of 2,458 total)