Viewing 15 posts - 3,271 through 3,285 (of 6,486 total)
MarkusB (5/19/2008)
adding another order by in the outer select will only the sort the 10 orders returned and the result will look like this:
2879All-Purpose Bike StandST-1401NULL159,00
8843Cable LockLO-C100NULL25,00
9952ChainCH-0234Silver20,24
3712AWC Logo CapCA-1098Multi8,99
6877Bike...
May 19, 2008 at 1:01 pm
Lynn Pettis (5/19/2008)
Here is the code I was using to do my testing:
CREATE PROCEDURE dbo.usp_ProductPagesA @firstrow int = 1, @sort varchar(50) = 'ListPrice'
AS
BEGIN
SET NOCOUNT ON
...
May 19, 2008 at 12:58 pm
The only order by you have is in the ROW_NUMBER - that's not going to reorder the set. It will help you with the paging process. Unless you actually...
May 19, 2008 at 12:41 pm
Here's one way....
drop table #t
create table #t(rid int identity(1,1), x xml)
insert #t(x)
select @doc2
select #t.rid, t.col.value('.','varchar(50)') c,
t.col.query('local-name(.)') j
from #t cross apply #t.x.nodes('//ROWS/*') t(col)
May 19, 2008 at 12:24 pm
Grant Fritchey (5/19/2008)
May 19, 2008 at 11:23 am
ALZDBA (5/19/2008)
Jeff Moden (5/19/2008)
...I guess that's why part of my Mantra is "do as much as you can in T-SQL instead of CLR's" and "you can do more than you...
May 19, 2008 at 10:59 am
Michael David (5/19/2008)
select Server.DB.dbo.testTable1.*
into Server2.test2.dbo.testTable1
from testTable1
go
The Server2 must be alinked server.
BTW, Dont do that. I am talking about select into. Bad SQL practice.
Use
INSERT INTO Table1(Col1,col2...)
SELECT col1,Col2 FROM Table2
If it...
May 19, 2008 at 9:57 am
Something else is going on, because I did just that (installed a default instance after a named instances). Are you going into Advanced mode? That's the only way...
May 19, 2008 at 9:08 am
So - ROW_NUMBER will not work. Like I mentioned earlier, changing the compatibility mode is something that has potential to break some of your code, so while it's probably...
May 19, 2008 at 9:02 am
Debbie - right-click on the database, then Properties, OPTIONS. There's a compatibility setting - what is it set to (DON'T mess with it, this would be a non-trivial change)?
May 19, 2008 at 8:51 am
Jeff Moden (5/17/2008)
Wilfred van Dijk (5/17/2008)
wait till MSSQL2008 🙂(don't get angry on me, I think a lot of people had the same question)
Heh... I, on the other hand, will loath...
May 19, 2008 at 8:47 am
Debbie Edwards (5/19/2008)
Mainly because its a bit beyond me...
May 19, 2008 at 8:20 am
Robert Hermsen (5/19/2008)
I don't feel the money game should be played. Counter...
May 19, 2008 at 8:02 am
rbarryyoung (5/16/2008)
Matt Miller (5/16/2008)
rbarryyoung (5/16/2008)
...(even Matt got here before me!)...
Hey now! where the heck did THAT come from??? :hehe::w00t:
Sheesh - travel home to see the wife, and get smacked around...
May 16, 2008 at 5:23 pm
John Beggs (5/16/2008)
Well, that's better than the other way around, Matt! 😀
No arguing with ya there:)
May 16, 2008 at 5:19 pm
Viewing 15 posts - 3,271 through 3,285 (of 6,486 total)