Viewing 15 posts - 166 through 180 (of 331 total)
Because temporary tables always end up in tempdb - so the temporary table reference would try to resolve from the local server. You might be able to use server.tempdb..##tablename though,...
September 22, 2009 at 8:49 am
Steve Jones - Editor (9/22/2009)
Tables with ## are global, seen by other connections. The disappear when dropped or when the instance restarts.
That's not actually correct. They disappear when the following...
September 22, 2009 at 8:46 am
That's a mixture of a new style JOIN and an old style JOIN
I could do
SELECT * FROM table1, table2 WHERE table1.col = table2.col
That's an old-style join
What has been done...
September 22, 2009 at 8:44 am
Grant Fritchey (9/22/2009)
Must be something wrong with my browser. I can only see SPID 60 and that only once.
Nope - your browser is fine.
September 22, 2009 at 8:38 am
Top job Lynn.
It's this sort of article that really keeps me on my toes with respect to the SQL I write - there's almost always a better way, and this...
September 22, 2009 at 3:19 am
If you're saying you have a load of DOCX documents in BLOBs then I would advise you to export them, use a batch converter, and import them back in.
Trying to...
September 21, 2009 at 6:56 pm
Another
WITH HighestYears AS (
SELECT *, ROW_NUMBER() OVER (PARTITION BY [LRSN] ORDER BY [EFF_YEAR] DESC) __rn
FROM dbo.VALUATION)
SELECT *...
September 21, 2009 at 6:39 pm
I know this is the 2k5 forum - but if you have the opportunity to use 2k8, you might want to look at MERGE.
September 21, 2009 at 6:32 pm
Roy Ernest (9/21/2009)
So the standard will be pretty high...
Well it is called SQL Server Standard 😀
September 21, 2009 at 6:30 pm
bitbucket-25253 (9/19/2009)
Slide 19 states that 625K rows were selected from a 1 trillion row table in .11 seconds (Yes that is 11 hundredths of one second).
Are you sure? Reason I...
September 21, 2009 at 12:54 pm
David Portas (9/19/2009)
September 20, 2009 at 6:30 am
David Portas (9/19/2009)
September 19, 2009 at 2:28 pm
David Portas (9/19/2009)
September 19, 2009 at 1:07 pm
Lynn Pettis (9/18/2009)
Building on this, empid isn't even in the index, so sounds like a good possibility for a table scan.
...in fact - do we even know that that index...
September 18, 2009 at 12:56 pm
Ian Scarlett (9/18/2009)
(empcode between '99201' and '99205' or empcode between '99211' and '99215' or
empcode between '99241' and '99245' or empcode between '99354' and '99355'...
September 18, 2009 at 12:25 pm
Viewing 15 posts - 166 through 180 (of 331 total)