Viewing 15 posts - 376 through 390 (of 1,957 total)
dopydb (11/14/2014)
thanks Luis ,and you are just right making me research what i am doing 😉SELECT Customer,ShipPostalCode,left(ShipPostalCode, ((PATINDEX('%[0-9]%', ShipPostalCode)-1))
FROM ArCustomer
SELECT Customer,ShipPostalCode,left(ShipPostalCode, ((PATINDEX('%[0-9]%', ShipPostalCode+'1')-1))
FROM ArCustomer
I would just append a number such...
November 15, 2014 at 4:51 am
The query plan is timing out, and I'm not surprised!
Take this one simple looking expression in the WPO CTE:
CASE WHEN WO.[DATE] = COALESCE(TW.WEEK_ENDING -6, WP.PATTNDATE -6) THEN COALESCE(WO.[HOURS], WP.[HOURS]) ELSE...
November 14, 2014 at 5:48 pm
dopydb (11/14/2014)
thanks Luis ,and you are just right making me research what i am doing 😉SELECT Customer,ShipPostalCode,left(ShipPostalCode, ((PATINDEX('%[0-9]%', ShipPostalCode)-1))
FROM ArCustomer
what do you want to do when you come across an...
November 14, 2014 at 5:15 pm
GilaMonster (11/14/2014)
Jason-299789 (11/14/2014)
MS could help the situation by having its tools like SSMS and SSDT require it at compile time.
SSMS doesn't have a T-SQL compiler. When you ask for a...
November 14, 2014 at 4:57 pm
If you want a major duration boost, you can always slip Adam Machanic's "make_parallel" function into the mix and then you get some serious results...
Adam's function : http://sqlblog.com/blogs/adam_machanic/archive/2013/07/11/next-level-parallel-plan-porcing.aspx
In use for...
November 4, 2014 at 5:35 pm
Nice question.
I started reading and thought how odd it was to see tsql without semi colons these days....I soon realised why 🙂
October 21, 2014 at 12:54 am
ian 43089 (10/17/2014)
The problem is that I'm using TSQL to get some query data (that contains single quotes) and I need to return that as valid XML...
October 18, 2014 at 5:21 pm
Did you check that the string does not have a space at the start, which would lead to a value of 2014-10-1 begin converted...
October 16, 2014 at 4:23 pm
Thanks Melanie,
No, I still can't reply on that thread.
Is this in any way related to how long it is taking to edit/add posts as well or is that a...
October 16, 2014 at 12:55 pm
Correctly encode the single quote as &apos ?
Not so sure that it would be correct anywhere except in an attribute that had been enclosed in single quotes itself?
If it is...
October 16, 2014 at 12:51 pm
Melanie.Townsend (10/15/2014)
October 16, 2014 at 9:20 am
trwillcox (10/16/2014)
Just tested about 1000 barcodes generated with the updated code and they all worked.Thanks for all your help MM. Hopefully I wont be bothering you again!!
No problem, thanks for...
October 16, 2014 at 7:38 am
This is where only allowing updates through stored procedures helps...
it's a simple bit of code added into the stored procedure to write a copy of the event data to a...
October 15, 2014 at 1:45 pm
I was just testing to see if you were paying attention 😎
Hopefully all solved now - certainly looks right for all the problems you've shown so far.
October 15, 2014 at 12:01 pm
That should work but put SSMS into text output mode (press ctrl-t before running), not grid mode or you won't see the line breaks.
It could be that your web application...
October 14, 2014 at 5:02 pm
Viewing 15 posts - 376 through 390 (of 1,957 total)