Viewing 15 posts - 406 through 420 (of 1,193 total)
ScottPletcher (6/14/2016)
SELECT X1,
...
June 14, 2016 at 8:25 am
You could do something like this:
SELECT X1,
AllVar
FROM your_table
CROSS APPLY
...
June 13, 2016 at 2:36 pm
Compatibility level 90 is not supported in SQL Server 2014. Compatibility levels 100 and up are, however.
https://msdn.microsoft.com/en-us/library/bb510680.aspx
Cheers!
June 10, 2016 at 4:12 pm
Lynn Pettis (6/10/2016)
Jacob Wilkins (6/10/2016)
They're for query with UDF and query with inline equivalent.
It's...
June 10, 2016 at 8:40 am
Well, the attached plans aren't for acceptably-performing query with UDF and unacceptably performing query with UDF.
They're for query with UDF and query with inline equivalent.
It's expected that on large...
June 10, 2016 at 8:09 am
My best guess for the change would be a change in the query plan, specifically where in the query plan the function was being applied. Something like previously the function...
June 9, 2016 at 10:09 am
So there are two separate problems.
The first is that there are TransTypes other than 4 and 1, so ordering by TransType DESC means that the RN=1 could well be...
June 8, 2016 at 3:55 pm
marcossuriel (6/7/2016)
I generated a sample from the actual live database. Please note that the TransType on the database is stored as follows:
TransType: 4 = Shipment
TransType: 1 = Receipt
I...
June 7, 2016 at 12:29 pm
drew.allen (6/6/2016)
Jacob Wilkins (6/6/2016)
I said it will return all such rows.
The "period" was to indicate that the...
June 6, 2016 at 3:00 pm
drew.allen (6/6/2016)
Jacob Wilkins (6/6/2016)
If that's the case, then at least...
June 6, 2016 at 2:10 pm
It sounds like the problem is that you're returning rows where current quantity is 0, which violates one of your requirements.
If that's the case, then at least that immediate problem...
June 6, 2016 at 1:30 pm
There are two ways SQL Server can implement grouped aggregations (stream and hash).
They have different performance characteristics and each work well in certain situations, but the relevant difference here...
June 6, 2016 at 11:14 am
Grant Fritchey (6/1/2016)
Jacob Wilkins (6/1/2016)
June 1, 2016 at 12:46 pm
tom.w.brannon (6/1/2016)
CREATE TABLE #Mytest2 (id INT, x XML)
INSERT #mytest2
VALUES
(11,...
June 1, 2016 at 9:38 am
There's an "Execute SQL" option in the Query Designer that you can use to run the query straight from the designer (available by right-clicking the SQL pane).
Starting a while ago...
June 1, 2016 at 9:30 am
Viewing 15 posts - 406 through 420 (of 1,193 total)