Viewing 15 posts - 4,921 through 4,935 (of 8,416 total)
Peter Brinkhaus (3/23/2010)
I believe the test script contains an error
Oh well. Never mind then.
March 23, 2010 at 11:08 am
CirquedeSQLeil (3/23/2010)
Just making my way through the thread - but something tells me they at least know who Bart and Lisa are.
Who?
(now where's that new angelic emoticon?)
March 23, 2010 at 9:34 am
SELECT MAX(date)
FROM (
SELECT date
FROM @Table1 T1
...
March 23, 2010 at 9:23 am
Gentlemen,
There are indeed many fine ways to write an in-line number generator!
My point was simply that the originally posted code was not one of them.
All very interesting though.
March 23, 2010 at 9:06 am
Peter Brinkhaus (3/23/2010)
I guess the subtle difference between Wayne's and Paul's solution is the (ORDER BY N) vs. (ORDER BY (SELECT 0))
Good point. 😎
March 23, 2010 at 9:02 am
GRE (Gethyn Ellis) (3/23/2010)
Paul, is there a 'report' feature of the new syntax...I can't see anything in BOLan equivalent of sp_change_users_login 'report' ?
No...but it is a pretty trivial query to...
March 23, 2010 at 8:54 am
Jack Corbett (3/23/2010)
We are Married not Dead!
Semantics...:-P
March 23, 2010 at 8:40 am
WayneS (3/23/2010)
What do you base the inefficiency on?
Initially, just by looking at it. Then by checking the execution plan. Then by testing it.
SET STATISTICS TIME ON;
;WITH
Tens (N)...
March 23, 2010 at 8:38 am
Can't believe that no-one has posted a link to Erland's article on this topic yet.
Arrays and Lists in SQL Server[/url]
Best guide there is, IMO.
March 23, 2010 at 8:31 am
If the statement was generated by an automated procedure, you need to check that code. If you post it here, we can take a look.
BTW sp_change_users_login is deprecated and...
March 23, 2010 at 8:29 am
APPLY would have been much cooler :laugh:
Glad you found the solution!
March 23, 2010 at 8:18 am
WayneS (3/23/2010)
March 23, 2010 at 8:16 am
Dave Ballantyne (3/23/2010)
Paul White NZ (3/23/2010)
I just remembered - the candidates with certifications were often very weak technically too. Odd, but true.
Not odd, ive always thought the exams...
March 23, 2010 at 8:13 am
Kevin,
For brevity, I am going to assume that you know all about the evils of T-SQL scalar functions, those that do data access in particular.
Nevertheless, I would join Stefan in...
March 23, 2010 at 8:06 am
The Dixie Flatline (3/23/2010)
March 23, 2010 at 7:35 am
Viewing 15 posts - 4,921 through 4,935 (of 8,416 total)