Viewing 15 posts - 1,606 through 1,620 (of 6,486 total)
adam spencer (11/23/2009)
If I did go ahead and show them a comparison written your way and a their Cursor way, what would be the biggest advantage? less code? runs faster?
I...
November 23, 2009 at 11:32 am
Make sure that your solution is sign-sensitive, because you will now get opposite results for positive and negative numbers
i.e. +7.044444449 => +7.05
however...
November 23, 2009 at 10:25 am
By the way, I'm sorry I missed the candle and cakes, but -
Happy 1st birthday to the Thread.
That's right - the Thread turned 1 last week.....
November 23, 2009 at 10:14 am
C# Screw (11/21/2009)
Matt Miller (#4) (11/21/2009)
actually there's a bg thread a few years back with Jeff and I doing the friendly footrace competition on CLR versus native T-sql solutions. ...
November 21, 2009 at 11:13 am
C# Screw (11/16/2009)
That is interesting,do you have Visual Studio there ....or I can create T-SQL CREATE ASEMBLY line so u can also test the C# CLR version ... ?
Cheers
Technically,...
November 21, 2009 at 9:18 am
Indianrock (11/19/2009)
November 19, 2009 at 8:15 pm
The name isn't your issue. This works:
declare @f xml
set @f='
<rt bob="">
<matt fun="1" notfun="2"><joe>uu</joe><comment> abcdefgh</comment></matt>
<matt fun="3" notfun="6"><comment> 987654asfd</comment></matt>
<matt fun="4" notfun="7"><comment> oooooooooooooooo</comment></matt>
</rt>'
select @f
select @f.query('for $b in /rt/matt
...
November 19, 2009 at 3:11 pm
The cluster can also be set to NOT keep trying over and over. After 3 "round trips, for example, just plain fail (which then gives you something to alert...
November 19, 2009 at 1:15 pm
This has "concurrency issue" written all over it, so you will need to ensure noone else is actively inserting during this process.
That said - if you can squeeze this in...
November 19, 2009 at 10:14 am
well - you can use the OSQL command-line tool to check on an instance.
For example :
Osql -E -S<server instance> -Q "Select @@servername"
Should return the name if the server...
November 19, 2009 at 10:00 am
Have you tried sending ith through a generic string writer to do the replacements, and then push it so XML?
and - you need to escape the " or it will...
November 19, 2009 at 9:36 am
Please don't cross-post.
conversation is already ongoing over here:
November 18, 2009 at 3:43 pm
Phil is showing you what is called a Common Table Expression. Unless you put that calculated column in your table, that's the way to do what you are asking.
You...
November 18, 2009 at 3:41 pm
Maybe I'm reading that wrong - , but two places dont' look right:
1. if you're worried about the XML being valid - why load the stuff into an XMLdocument BEFORE...
November 18, 2009 at 3:35 pm
Viewing 15 posts - 1,606 through 1,620 (of 6,486 total)