Viewing 15 posts - 4,966 through 4,980 (of 13,465 total)
it's going to look somethign like this: i wasn't sure ont eh join criteria: i was assuming the table ztb_IMP_Notifications has the same sales_order_number
SELECT
ztb_Carrier_Delivery_Metrics.Delivery,
ztb_Carrier_Delivery_Metrics.Delivery_Item,
...
August 10, 2012 at 11:33 am
sounds a lot like parameter sniffing;
are you able to modify the procedure?
I'd bet that by adding option (OPTIMIZE FOR (@PayrollID1 UNKNOWN)) it would build better plans.
ALTER PROCEDURE [dbo].[GetPersonalTaxesAccumulators_v2]
( @PayrollID1...
August 10, 2012 at 9:37 am
Aspet Golestanian Namagerdi (8/10/2012)
August 10, 2012 at 9:13 am
here's one way;
the nice thing about this technique, is it makes it very easy to change/adapt to include/exclude other special characters...at least for me it's obvious, that is.
additionally, depending on...
August 10, 2012 at 8:53 am
ok how about this idea:
if you grab the free, add-on SSMS Tools
from here:
one of the options it provides is a "default" template every time you create a new query window...
August 10, 2012 at 8:36 am
very true;
i've seem questiosn where the problem query was psoted, the issue is either a syntax issue or something like a case statement manipulation, but a knee-jerk reaction post asking...
August 10, 2012 at 5:55 am
Could it be the SSMS version?
Maybe the SSMS for Express with advanced services was installed, instead of SSMS that comes with 2005 STD?
August 10, 2012 at 5:53 am
the trick is to use a technique using FOR XML:
does your table have more columns than just the year? the solution's the same, but the detaisl are a little differnet.
here's...
August 9, 2012 at 2:41 pm
halifaxdal (8/9/2012)
August 9, 2012 at 2:32 pm
ok don't telnet by ip address, try to go to the mx record: mail.yoursever.com or whatever.
the DNS resolution seems to be the issue, i'm thinking...either DNS or name change?
August 9, 2012 at 2:28 pm
wait, your adding a column, updaiting it to a string value, and then dropping the same column?
we can certainly help streamline THAT process.
you can probably use a CTE or something...
August 9, 2012 at 2:25 pm
lol so true!
thanks for noticing Scott!
August 9, 2012 at 2:22 pm
I wouldn't be surprised if some just didn't feel like enabling it for you, and used the "it's locked down for security" trump card just to cut off discussion.
I'm agreeing...
August 9, 2012 at 2:21 pm
if there is no ORDER BY, SQL is free to return the data in any order it deems efficient.
only with an ORDER BY are you guaranteed consistent order by results.
in...
August 9, 2012 at 2:15 pm
Viewing 15 posts - 4,966 through 4,980 (of 13,465 total)