Viewing 15 posts - 391 through 405 (of 2,462 total)
mickegohle (11/1/2016)
I have tried to get an insert query to execute faster.
I have a table with an xml-column in it. This xml is quite big and there are...
-- Itzik Ben-Gan 2001
November 1, 2016 at 9:28 am
Here's kind of a hybrid of both of Luis' solutions:
let's say you have a maximum number of delimiters, for my example we'll say a max of 6 (but you...
-- Itzik Ben-Gan 2001
October 31, 2016 at 2:28 pm
djj (10/24/2016)
Alan.B (10/22/2016)
Alan.B (10/14/2016)
Ray K (10/14/2016)
-- Itzik Ben-Gan 2001
October 31, 2016 at 8:28 am
Alan.B (10/14/2016)
Ray K (10/14/2016)
-- Itzik Ben-Gan 2001
October 22, 2016 at 8:56 pm
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
Viewing 15 posts - 391 through 405 (of 2,462 total)