Viewing 15 posts - 1,051 through 1,065 (of 1,838 total)
it looks like the problem isn't with your joins, but that you don't seem to compare the value of submmitedon in each row to the maximum value in your date...
March 20, 2017 at 2:13 pm
Do you have a proxy account setup for XP_CMDSHELL?
https://msdn.microsoft.com/en-us/library/ms190359.aspx
This defines what windows account that XP_CMDSHELL will run as, so you can ensure it's an account that has...
March 16, 2017 at 2:44 pm
March 16, 2017 at 2:36 pm
Do you have the query plan from this query that you can post, as a .sqlplan file? Also, what indexes are on these 3 tables? The OUTER APPLY should work...
March 15, 2017 at 2:22 pm
March 15, 2017 at 1:40 pm
March 15, 2017 at 12:46 pm
maybe it could be simplified like this instead of physically counting all the records?
SELECT 1 WHERE(
EXISTS (SELECT NULL FROM View1 WHERE field1 = 'Y')
OR
March 14, 2017 at 1:31 pm
March 14, 2017 at 1:15 pm
March 13, 2017 at 7:02 am
it is normal for SQL Server to use as much memory as it can, since it wants to cache things like your data, indexes, query execution plans, etc in memory...
March 10, 2017 at 7:40 am
Is the OrderID column in the Orders table an IDENTITY column? Either way if it is or not I'd imagine that it would not be IDENTITY in the orders_arch table,...
March 10, 2017 at 7:12 am
March 10, 2017 at 6:47 am
March 9, 2017 at 2:44 pm
Probably the only thing I'd change would be the order of a couple of things to make sure dependencies between those items are met. For example, in my environment there...
March 9, 2017 at 1:47 pm
March 9, 2017 at 1:07 pm
Viewing 15 posts - 1,051 through 1,065 (of 1,838 total)