Viewing 15 posts - 1,081 through 1,095 (of 2,462 total)
Phil Parkin (1/4/2016)
Alan.B (1/4/2016)
--For me, that's been the 0.0001% exception.
Wow. That suggests you have written/tested 10,000 (or more) TVFs :w00t:
I've been busy 😉
-- Itzik Ben-Gan 2001
January 4, 2016 at 12:08 pm
Except for recursive CTEs, CTEs and Subqueries are basically the same thing. I prefer CTEs for a couple things:
First, for nested queries. CTEs make nested queries much more readable and...
-- Itzik Ben-Gan 2001
January 4, 2016 at 12:05 pm
Eirikur Eiriksson (1/4/2016)
Worse still are the multi-statement table-valued functions, in fact there is no excuse or justification for using those.
I agree with this 99.9999% of the time but I did...
-- Itzik Ben-Gan 2001
January 4, 2016 at 11:16 am
You can also take a peek at this:
http://m.sqlmag.com/t-sql/avoid-unnecessary-lookups-when-using-rownumber-paging
-- Itzik Ben-Gan 2001
January 4, 2016 at 7:31 am
TheSQLGuru (1/4/2016)
2) This article fails to mention an EXCEPTIONALLY important flaw (among many others that aren't covered such as preventing...
-- Itzik Ben-Gan 2001
January 4, 2016 at 7:04 am
robert-819720 (12/30/2015)
-- Itzik Ben-Gan 2001
December 31, 2015 at 5:30 pm
Luis Cazares (12/30/2015)
SELECT CONVERT(date,[dates]) AS Dates
FROM DailyDates
OPTION (maxrecursion 0)
),
However, there's a major problem. You have a rCTE that counts which...
-- Itzik Ben-Gan 2001
December 30, 2015 at 6:19 pm
You can use the Quirky Update method discussed here: http://www.sqlservercentral.com/articles/T-SQL/68467/%5B/url%5D
-- Itzik Ben-Gan 2001
December 30, 2015 at 11:49 am
That END statement will cause an error if there is not a BEGIN statement somewhere before it within the same transaction. I'll just assume, however, that you have a BEGIN...
-- Itzik Ben-Gan 2001
December 30, 2015 at 10:55 am
SQLisAwE5OmE (12/29/2015)
Thnx again Jeff for trying. I am learning.
You've come to the best place for people that are learning SQL IMHO.
-- Itzik Ben-Gan 2001
December 29, 2015 at 7:46 pm
Stylez (12/29/2015)
Good Morning Guys,...is there a substitute tool that i can use so i can create my SSIS package with only my SQL Server 2012?
Depending on what you are trying...
-- Itzik Ben-Gan 2001
December 29, 2015 at 12:56 pm
I'm guessing you would add this to the end of your query:
WHERE Parent1_Gender = 'F' and Parent2_Gender = 'F'
-- Itzik Ben-Gan 2001
December 29, 2015 at 12:46 pm
Eirikur Eiriksson (12/28/2015)
Alan.B (12/28/2015)
Someone beat me to it but NOLOCK table hints are the #1 mistake I have seen. I would go so far as...
-- Itzik Ben-Gan 2001
December 28, 2015 at 2:23 pm
The most common/easiest to fix mistakes:
Someone beat me to it but NOLOCK table hints are the #1 mistake I have seen. I would go so far as to say it's...
-- Itzik Ben-Gan 2001
December 28, 2015 at 12:39 pm
The AD account is a member of an AD group that gives 'datareader' to this particular database. Would this be enough to execute the SP's that it does not have...
-- Itzik Ben-Gan 2001
December 28, 2015 at 12:13 pm
Viewing 15 posts - 1,081 through 1,095 (of 2,462 total)