Viewing 15 posts - 1 through 15 (of 22 total)
Maybe if the function is only there to cope with null dates being stored as an origin point like 1st January 1900 or 1st January 1753, then he could replace...
September 4, 2015 at 5:44 am
Experts might tell you to look at the actual execution plan to see where the costly parts of the query are, but it might just confuse you as a beginner...
September 4, 2015 at 3:55 am
If you are looking in the Object Explorer in SSMS you will need to expand the "System Tables" folder within the "Tables" folder (and possibly right click and Refresh), then...
July 28, 2015 at 2:39 am
Lynn Pettis (6/8/2015)
Realize this is a crutch. The only way to ensure the order of data is for there to be an ORDER BY on the outer query.
Are there...
June 8, 2015 at 9:27 am
If you really cannot move the ORDER BY to the outer query that uses the view, then you could use the TOP 2147483647 (or a smaller number if that is...
June 8, 2015 at 5:56 am
The topic was teaching beginners how to move things into a CROSS APPLY from other parts of the query, so they can be reused instead of repeating their definition. The...
April 28, 2015 at 3:41 am
It's worth being aware that CROSS APPLY works kind of like an inner join, but OUTER APPLY works kind of like an outer join, so if your APPLY statement is...
April 27, 2015 at 10:53 am
I have noticed sometimes that when I run a package interactively in BIDS (or SSDT or whatever its called now), it will hang for ages without doing anything at all,...
April 24, 2015 at 3:08 am
For very simple calculations like your example, it's normally fine to simply do the whole calculation in the SELECT part of the query, accepting that there is a little bit...
April 14, 2015 at 6:38 am
I sometimes use OUTER APPLY to avoid repeating a formula instead of using a CTE, but I'm not sure which method is more efficient. For example:
SELECT
Column_1,
Column_2,
Column_3,
10*Column_1 AS Column_4,
OA.Column_5,
Column_1*OA.Column_5 As Column_6
FROM...
April 13, 2015 at 5:11 am
I've aware that when you concatenate strings, the data type of the entire concatenated string will be set according to the implicit data type of the first item, which can...
March 18, 2015 at 3:14 am
In my version of VS2010 , File > New >Project > Installed Templates > Business Intelligence > Analysis Services, then choose "Import from Server (Multidimensional and Data Mining)" or "Import...
March 6, 2015 at 2:30 am
I was looking for a function like that a while ago to help me identify UK car registrations that were issued consecutively (our company buys vehicles in bulk and sometimes...
February 13, 2015 at 4:32 am
Heh, heh, sounds like a Yoda quote. "Do or do not, there is no y". Perhaps in the original poster's system, field [comm_url] is always either null or 'Automatically...
February 3, 2015 at 8:25 am
Eirikur Eiriksson (10/19/2014)
October 20, 2014 at 5:08 am
Viewing 15 posts - 1 through 15 (of 22 total)