Viewing 15 posts - 1,471 through 1,485 (of 2,463 total)
is there any sql script or stored proc running under it ? POst it
August 11, 2010 at 1:24 am
@paul-2 : thanks for this informative description. 🙂
August 10, 2010 at 9:39 pm
Selecting all data means either you have clustered index scan or table scan.see the execution plan , picture will be clear to you
August 10, 2010 at 6:58 am
Grant Fritchey (8/10/2010)
--test table
CREATE TABLE OrderTest
(id INT,
parentid INT NULL)
--test data
INSERT INTO OrderTest
VALUES
(1, NULL),
(2, NULL),
(3, NULL),
(4, 1),
(5, 1),
(6, 2),
(7, 2),
(8, 3),
(9, 3)
--query
SELECT *
FROM OrderTest
ORDER...
August 10, 2010 at 6:44 am
August 10, 2010 at 6:17 am
GilaMonster (8/10/2010)
In the initial post, neither of the order by statements matched the clustered index
Ok agree but see the below case with exec plan
truncate table email_destination_bk
insert into email_destination_bk
select ut_stub,acct_id...
August 10, 2010 at 4:49 am
Sorry difficult play :-P, but desperate to see the reply
August 10, 2010 at 2:22 am
One of my Senior DBA told me that if we have "order by" clause according to source table then there would be page split during insertion as the data is...
August 10, 2010 at 2:03 am
John Mitchell-245523 (8/9/2010)
This doesn't guarantee that the rows will be inserted in that order.
thanks
Then in which case , "order by" will be relevant for insert statement.
August 9, 2010 at 6:41 am
use cast or convert function
August 9, 2010 at 5:55 am
basically your query SELECT Name FROM dbo.users
will be executed in msdb database thats why you are not getting results
August 9, 2010 at 5:53 am
Viewing 15 posts - 1,471 through 1,485 (of 2,463 total)