Viewing 15 posts - 121 through 135 (of 1,553 total)
Matt Miller (10/26/2007)
raw sort 52956
convert sort 89013
and now with an index
raw sort ...
October 29, 2007 at 5:16 am
Oh really?
Then I assume that what was 'desired' was something else than what was written?
You're actually saying that the below example is 'incorrect', or 'undesired', or simply plain 'wrong'..?
[font="Courier New"]declare...
October 29, 2007 at 3:02 am
Because semantics *is* important, and this is a good example of why.
SQL is language where we construct questions, and as you ask, thou shalt be answered.
So, here we ask for...
October 29, 2007 at 1:54 am
Jeff Moden (10/26/2007)
Greg Snidow (10/26/2007)
Well, I can't replicate it, but I know I had an issue with it before. Maybe I'm just crazy.
No, not crazy... both of the following...
October 26, 2007 at 8:41 am
Matt, do you have any example that shows such abysmal difference?
Tried a little, and sure, there is a piece of overhead between
ORDER BY datecolumn
and
ORDER BY CONVERT(CHAR(8), datecolumn, 112)
for example..
But far...
October 26, 2007 at 8:34 am
It's probably because the WITH INDEX trick doesn't really work.
Before anyone blows a fuse, by 'not really work' I mean 'not supported', 'isn't reliable', 'cannot be guranteed 100% to always...
October 26, 2007 at 4:49 am
You can still order by that as well..
Or are you talking about something else, Greg?
J M - the place in BOL you're looking for is under 'CONVERT'
There you'll find...
October 26, 2007 at 4:35 am
Well, first of all you need to have a genuine interest in 'dba:ing' (whatever that is) 😉
As with everything else, you want to learn as much as possible about how...
October 26, 2007 at 2:43 am
Sergiy (10/25/2007)
Would you mind to look couple of pages back?
It's just almost exact copy of my script. "+6" is replaced with "-1" -...
October 26, 2007 at 1:50 am
Have to revise my previous ramblings on insert order and identity above, apologies for that.
(though it's somewhat a sidetrack it deserves to be correct)
Contrary to what I wrote before, if...
October 25, 2007 at 6:27 am
Then you need to upgrade your current version.
-- quote BOL --
Requirements
Log shipping has the following requirements:
SQL Server 2005 Standard Edition, SQL Server 2005 Workgroup Edition, or SQL Server 2005 Enterprise...
October 25, 2007 at 2:13 am
Ah, just small details that tends to get lost in the overall excitement...
Like first, when performance was measured by just execting something and as I assumed, also returning the results....
October 25, 2007 at 2:06 am
Dunno why it didn't work..
Though I agree that the output (with 'password' promt) looks suspicious.
Couldn't replicate it. Worked both on 2k and 2.5k, no problems at all.
The one difference perhaps,...
October 24, 2007 at 3:11 am
Matt Miller (10/23/2007)
Funny - I thought you said there was exactly ONE way.....what about
datediff(dd,0,@dte)%7+1
Seems to work for me?
Oh yes, using DATEDIFF that way will work, as long as:
the 2nd parameter's...
October 24, 2007 at 2:39 am
Viewing 15 posts - 121 through 135 (of 1,553 total)