Viewing 15 posts - 3,466 through 3,480 (of 5,504 total)
Joie Andrew (5/20/2010)
I don't think that Lutz was trying to give you any attitude at all. I think he was simply trying to identify what you have already...
May 21, 2010 at 6:48 am
Please read and follow the instructions given in the article referenced in the first link in my signature.
This will allow us to work on a solution instead of trying to...
May 20, 2010 at 3:57 pm
Joie Andrew (5/20/2010)
A quick serch in MSDN brought this back:
I've seen that too but didn't feel like a human search engine today......
May 20, 2010 at 3:48 pm
I second Stefan regarding not to trust the % measures from an execution plan.
Especially if the query itself doesn't take that much time (like in your case).
The main reason is...
May 20, 2010 at 3:45 pm
What links/hints/information did you get using a simple Google search?
It seems like there is a load of information out there...
May 20, 2010 at 3:34 pm
Your query itself seems to be valid in terms of syntax.
You should narrow the problem down in SSMS and build the dynamic string later.
My guess would be there are either...
May 20, 2010 at 3:20 pm
Something like this?
SELECT
Y.value('@Guid[1]','char(37)') AS Guid_,
Y.value('(.)[1]','varchar(100)') AS Property_
FROM @XML.nodes('Root/Property') X(Y)
May 20, 2010 at 1:41 pm
It depends.
If you want to store the integer value converted to character then you can't, since the value '94' has two character.
But if you want to store the ASCII character...
May 19, 2010 at 10:04 am
Based on a numbers (or tally) table I'd use the following logic:
;
WITH cte AS
(
SELECT
n,
(ROW_NUMBER() OVER(ORDER BY n)-1) % 5 +1 AS c,
(ROW_NUMBER() OVER(ORDER BY n)-1) /...
May 19, 2010 at 9:59 am
This was actually my first thought before I stumbled over the OP's requirement at the end of his first post:
I will also need to run this query on a SQL...
May 18, 2010 at 5:28 pm
Jeff Moden (5/18/2010)
lmu92 (5/18/2010)
SELECT * FROM
(
SELECT 'Smith John' AS lastname UNION ALL
SELECT 'S#ith Jane' UNION ALL
SELECT '\ Jim' UNION ALL
SELECT 'Anderson Ken' UNION ALL
SELECT 'Smith-Barny...
May 18, 2010 at 5:04 pm
bteraberry (5/18/2010)
if a "re-open" occurs followed at some point by a "ready...
May 18, 2010 at 4:50 pm
Lowell (5/18/2010)
very nice job.
blade, if you look at Lutz's contribution, it's doing all your updates as...
May 18, 2010 at 4:41 pm
Nice and clean solution.
But if you have the following scenario of two 'Re-open' without a 'Ready for build' in between, you might get wrong results:
...
May 18, 2010 at 4:34 pm
Here's a Q&D (quick and dirty) CTE approach using your INSERT statement to define the CTE.
The final SELECT actually uses a bunch of CASE statement to cover your various...
May 18, 2010 at 4:27 pm
Viewing 15 posts - 3,466 through 3,480 (of 5,504 total)