Viewing 15 posts - 2,551 through 2,565 (of 8,731 total)
whereisSQL? (7/5/2016)
Ed Wagner (7/5/2016)
Manic Star (7/5/2016)
Ed Wagner (7/5/2016)
djj (7/5/2016)
ThomasRushton (7/5/2016)
Ed Wagner (7/5/2016)
Revenant (7/5/2016)
Y.B. (7/5/2016)
Ed Wagner (7/5/2016)
ThomasRushton (7/5/2016)
Stuart Davies (7/5/2016)
ClubKitkat
Candy
Cane
Kane [Citizen]
Sugar
Barley
Wheat
Flour
E-Coli
Bacteria
Super
Man
July 5, 2016 at 1:14 pm
Using user-defined scalar functions (anywhere) is bad.
Exceptions are possible but thorough testing must be done to confirm that, so just keep in mind the previous sentence.
July 5, 2016 at 10:15 am
From what I understand, you're concatenating 4 values delimited by double backslashes.
Here's an option, it adds the delimiter before each value and uses STUFF to remove the first delimiter:
SELECT STUFF(...
July 5, 2016 at 9:46 am
> Is there a way in SQL to call a SP within update statement
No, you can only have an update statement within a stored procedure. UPDATE is a statement, a...
July 5, 2016 at 8:49 am
The following article will explain how to do it:
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
Read it and ask any questions you might have.
July 5, 2016 at 6:58 am
RonKyle (7/1/2016)
I don't like that idea because that way you need to join tables for simple queries restricted by dates.
To that I always reply that no user should be looking...
July 1, 2016 at 9:39 am
Ed Wagner (7/1/2016)
djj (7/1/2016)
Ed Wagner (7/1/2016)
ThomasRushton (7/1/2016)
Ed Wagner (7/1/2016)
djj (7/1/2016)
BWFC (7/1/2016)
ThomasRushton (7/1/2016)
Ed Wagner (6/30/2016)
Revenant (6/30/2016)
TomThomson (6/30/2016)
djj (6/30/2016)
HappyGeek (6/30/2016)
jasona.work (6/30/2016)
Ed Wagner (6/30/2016)
Y.B. (6/30/2016)
VacationSoon
Now
Later
Sometime
Summertime
Short
Trousers
Daisy
Duke
Boys
Charger
Jumps
Battery
Bunnies
July 1, 2016 at 9:13 am
I don't like that idea because that way you need to join tables for simple queries restricted by dates. Even if you won't have that problem once the cube is...
July 1, 2016 at 9:03 am
vijay.sap1255 (7/1/2016)
I was trying to get rid of null values when using full outer join between two tables. For example, I have tables like below:
Table A ...
July 1, 2016 at 6:49 am
Maybe these articles will explain this better:
https://www.mssqltips.com/sqlservertip/2650/what-maxdop-setting-should-be-used-for-sql-server/
https://support.microsoft.com/en-us/kb/2806535
This is an additional to check five settings that often go overlooked
https://www.brentozar.com/archive/2013/09/five-sql-server-settings-to-change/
Durga, in the Microsoft article you can find the answer.
July 1, 2016 at 6:46 am
This is equivalent to your code. Both are not guaranteed to get the same results each time as there's nothing to order. Pietlinden gave you the other part of the...
June 30, 2016 at 11:27 am
You could also check this to learn about catch-all-queries. http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
I would create a different temp table for each parameter.
June 30, 2016 at 9:54 am
Maybe this simplified example from AdventureWorks can make it look simpler. The dates are both in the fact and the dimension.
CREATE TABLE [dbo].[DimDate](
[DateKey] [date] NOT NULL,
[DayNumberOfWeek] [tinyint] NOT NULL,
[DayNameOfWeek]...
June 30, 2016 at 9:14 am
You just need 1 Time dimension. That dimension can have several hierarchies to represent natural year, fiscal year, etc. The key for that dimension is a date.
In your fact tables,...
June 30, 2016 at 8:35 am
It's easy to convert a SELECT into an UPDATE.
You have 2 options depending on the complexity of the UPDATE. You can keep the FROM and use a table alias in...
June 30, 2016 at 8:35 am
Viewing 15 posts - 2,551 through 2,565 (of 8,731 total)