Viewing 15 posts - 7,546 through 7,560 (of 18,923 total)
One more important detail. The SAME page can be read multiple times in that total. So even if the whole table has only 5 pages, the total reads...
November 4, 2010 at 5:14 am
Of course, I was just having fun with the tempdb thingie.
November 3, 2010 at 12:18 pm
Yes, but only when running the code in tempdb, that's why I was having a little fun with it in the code snippe with a bunch of usings.
November 2, 2010 at 2:18 pm
Craig Farrell (11/2/2010)
Ninja, the CREATE INDEX #idx_1 ...also works as CREATE INDEX idx_1...
Don't need the # for the index name there. Just fyi. Works either way.
Tx, I used...
November 2, 2010 at 12:00 pm
Craig Farrell (11/2/2010)
Ninja's_RGR'us (11/2/2010)
Even if it makes no difference here, it should read : IF Object_id('tempdb..#tmp') IS NOT NULLWith tempdb.. missing you'll never have a hit on that id.
Hmmmm....
CREATE TABLE...
November 2, 2010 at 11:57 am
That version works. Not using PK but same effect.
CREATE TABLE #Table1
(
TeacherID BIGINT
, StudentID BIGINT
)
CREATE UNIQUE CLUSTERED INDEX #IX_Tbl1 on #Table1 (TeacherID, StudentID)
CREATE TABLE #Table2
(
TeacherID BIGINT
,StudentID BIGINT
) ON...
November 2, 2010 at 11:51 am
Even if it makes no difference here, it should read : IF Object_id('tempdb..#tmp') IS NOT NULL
With tempdb.. missing you'll never have a hit on that id.
November 2, 2010 at 11:45 am
Craig Farrell (11/2/2010)
CREATE TABLE #tmp (tID INT);
IF Object_id('#tmp') IS NOT NULL
BEGIN
DROP TABLE #tmp
END;
IF Object_id('#tmp') IS NULL
BEGIN
CREATE TABLE #tmp(tID INT, tTxt VARCHAR(50))
END;
So, I'm going to go with...
November 2, 2010 at 11:43 am
I do that in prod no problem. Can you post the create table and index scripts you are using?
November 2, 2010 at 11:33 am
Craig Farrell (11/1/2010)
Of course to make my life interesting, this gets grumpy too and I can't remember how to get it to behave offhand. Maybe someone else remembers how...
November 2, 2010 at 11:20 am
Jeff Moden (11/1/2010)
Craig Farrell (11/1/2010)
November 2, 2010 at 11:15 am
Grant Fritchey (11/2/2010)
November 2, 2010 at 6:26 am
I wish I knew the problem but I've never seen that one.
Hopefully someone else will jump in and figure this one out with you.
November 2, 2010 at 5:50 am
Y
Would have been much better, 50% space saved in the DB, and then remove the signature and you're off to the races! :w00t:
November 2, 2010 at 2:04 am
GilaMonster (11/1/2010)
Ninja's_RGR'us (11/1/2010)
Plan cache seems the way to go. I couldn't find an event in the perf category with the info I wanted.
Bear in mind that you won't find...
November 2, 2010 at 2:03 am
Viewing 15 posts - 7,546 through 7,560 (of 18,923 total)