Viewing 15 posts - 46 through 60 (of 1,192 total)
I'll take a wild punt on $Params = "/FILE " => $Params = " /FILE " perhaps?
October 19, 2016 at 1:58 pm
george sibbald (10/5/2016)
I made it into the top 30 posters at one point so I did my...
October 5, 2016 at 11:17 am
Brandie Tarvin (10/5/2016)
jasona.work (10/5/2016)
2+ catsI'm trying to figure out how this works.
I blame Schrodinger.
October 5, 2016 at 11:13 am
patrickmcginnis59 10839 (8/2/2016)
Doctor Who 2 (7/24/2016)
October 5, 2016 at 8:57 am
Going to try and test it, but postulating that column stats are a property of the columns themselves rather than the table?
Edit: nope, there's no further Statistics property under columns....
October 5, 2016 at 7:52 am
I'm seeing similar behaviour scripting through SSMS. There the stats option has 3 values:
Do not script statistics - no stats
Script Statistics - stats for indexes only
Script statistics and histograms -...
October 5, 2016 at 7:49 am
I've used ceiling (and more frequently, floor) in some remove-time-part-from-datetime operations, pre SQL 2008.
October 4, 2016 at 5:34 am
This any good to you? Looks like scripting statistics is a valid option.
October 4, 2016 at 5:00 am
Jeff Moden (9/16/2016)
Alan.B (9/15/2016)
Gazareth (9/15/2016)
DECLARE @table TABLE (stateName varchar(20), Count1 int, TotalChargeOffAmount int);
INSERT @table
VALUES
('Alabama',5,1000),
('Arizona',2,4000),
('Arkansas',3,5000);
SELECT
stateName,
Count1,
TotalChargeOffAmount,
100.0*Count1...
September 16, 2016 at 9:02 am
Also SUM with OVER()
DECLARE @table TABLE (stateName varchar(20), Count1 int, TotalChargeOffAmount int);
INSERT @table
VALUES
('Alabama',5,1000),
('Arizona',2,4000),
('Arkansas',3,5000);
SELECT
stateName,
Count1,
TotalChargeOffAmount,
100.0*Count1 / SUM(t1.[Count1]) OVER ()...
September 15, 2016 at 1:05 pm
Nice idea, but Columnstore indexes are an Enterprise-only feature. A periodically refreshed persisted table with appropriate B-tree indexes may still be a valid approach though.
September 15, 2016 at 9:01 am
You can also use the Get-Content cmdlet in powershell to read out just a set number of lines from the start or end rather than the whole file.
September 14, 2016 at 8:15 am
What have I started here?! Haha
September 10, 2016 at 8:24 am
drew.allen (9/9/2016)
Jacob Wilkins (9/9/2016)
The Dixie Flatline (9/9/2016)
Both SET ANSI_WARNINGS OFF and SET ARITHABORT OFF will...
September 9, 2016 at 9:44 am
GilaMonster (9/9/2016)
Make sure you're on the latest SP & CU first.
Definitely do this first though.
September 9, 2016 at 8:35 am
Viewing 15 posts - 46 through 60 (of 1,192 total)