Viewing 15 posts - 2,566 through 2,580 (of 4,820 total)
Don''t have a clue, but just wondering if you should really be using the same port as SSMS. Just seems like an increase in your "attack surface area" that perhaps...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
May 2, 2017 at 9:09 am
Please find the attached excel. we used to get data in this format.This column...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
May 1, 2017 at 12:20 pm
We have unique key in table which is hashbye sha1.
This value is combination of multiple...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
May 1, 2017 at 8:03 am
I think the reason you haven't seen anyone do that kind of thing is fairly simple. While Word has a lot of formatting capability, you still have to find a...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
May 1, 2017 at 7:25 am
This should work to replace the DISTINCT. It gives the correct result:DECLARE @test-2 AS TABLE (
id int,
grp varchar(25),
keyposition int,
KeyValue varchar(100)
);
INSERT INTO @test-2 VALUES...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 28, 2017 at 2:35 pm
I get:
ORDER...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 28, 2017 at 2:26 pm
How about removing the DISTINCT and adding an ORDER BY ?DECLARE @test-2 AS TABLE (
id int,
grp varchar(25),
keyposition int,
KeyValue varchar(100)
);
INSERT INTO @test-2 VALUES (123,...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 28, 2017 at 2:19 pm
Take a look at how I took your query and just supplied a temp table name and all the possible values with some sample numbers to work with. If you...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 28, 2017 at 9:42 am
I'm pretty sure any kind of HASH function is going to operate on the binary value of a character, so lower case a (ASCII 96) is going to hash differently...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 28, 2017 at 8:53 am
I'm thinking the net result is something like this:WITH SELECTED_DATA AS (
SELECT C.Cust_MPAN, CONVERT(date, J.PlannedStart, 103) AS [Date], J.[Status], WP.AbortCategory,
ROW_NUMBER() OVER(PARTITION BY C.Cust_MPAN, J.[Status] ORDER BY...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 26, 2017 at 8:18 am
This has the potential to be challenging, because how would you handle a name like John Paul Revere? I can only think of one effective and performant way to do...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 25, 2017 at 7:57 am
Jeff,
Every time I "replace" a REPLACE with something less expensive like LEFT, RIGHT, and/or SUBSTRING, the query I'm working on improves it's performance significantly. Of all the string...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 21, 2017 at 10:14 am
All,
SSIS packages do require an instance of SSIS to be able to run, unless SSDT has now effectively simulated what the Integration Services service was doing in older...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 21, 2017 at 8:53 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 20, 2017 at 11:37 am
Stop using the subtraction of one date from another, and compare your results with using the DATEDIFF function, which operates like this:
DATEDIFF(day, EarlierDateFieldValue, LaterDateFieldValue)
It might hold...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
April 20, 2017 at 11:27 am
Viewing 15 posts - 2,566 through 2,580 (of 4,820 total)