Viewing 15 posts - 2,851 through 2,865 (of 3,957 total)
vinu512 (9/6/2012)
dwain.c (9/5/2012)
woody_rd (9/5/2012)
Kind of odd, that query returns 0 results.To which query do you refer? Mine returns 2 rows:
EventID
1
2
May be the OP means that when he applied your...
September 6, 2012 at 12:24 am
I am not 100% sure what you mean because I can't reproduce what you're saying, but maybe one of these will help you?
DECLARE @t TABLE (PremiumValue INT, PV MONEY)
INSERT INTO...
September 5, 2012 at 7:23 pm
Last time I checked my statistics book SUM/COUNT = AVG, so allowing for the fact that some IDs may not exist in one table or the other, I will propose...
September 5, 2012 at 7:15 pm
You can try this. It might work for you but without more test data it's difficult to be sure.
DECLARE @TableA TABLE (ItemID INT, Date DATETIME)
DECLARE @TableB TABLE (ItemID INT,...
September 5, 2012 at 6:57 pm
So in other words, the string always contains the same roles (or a subset of them) and the ordering of the output result is always fixed and not based on...
September 5, 2012 at 6:33 pm
woody_rd (9/5/2012)
Kind of odd, that query returns 0 results.
To which query do you refer? Mine returns 2 rows:
EventID
1
2
September 5, 2012 at 8:40 am
Brandie Tarvin (9/5/2012)
L' Eomot Inversé (9/5/2012)
Brandie Tarvin (9/5/2012)
Steve Jones - SSC Editor (9/4/2012)
September 5, 2012 at 6:59 am
Being kind today and setting up your sample data for you, perhaps something like this might do the trick?
DECLARE @t TABLE (EventID INT, ProcessDate DATETIME, TypeID VARCHAR(2))
INSERT INTO @t
SELECT 1,...
September 5, 2012 at 6:25 am
vinu512 (9/5/2012)
September 5, 2012 at 2:52 am
vinu512 (9/5/2012)
September 5, 2012 at 1:50 am
You can also dispense with the string split and do it with just a tally table like this:
;WITH MyTemp AS (
SELECT SECTION,...
September 4, 2012 at 7:49 pm
Just a guess, but if you divide 5000/31 and add that result up 31 times, it won't equal 5000 when you're through.
If you need it to, you can consult this...
September 4, 2012 at 7:25 pm
I agree that a string splitter combined with putting it all back together using FOR XML TYPE is the way to go:
DECLARE @pString VARCHAR(MAX) = 'BUILTIN\ADMINISTRATORS: [System Admin]YES;[Security Admin];[Server Admin];[setup...
September 4, 2012 at 7:19 pm
SQL Kiwi (9/4/2012)
Blog post is up: http://bit.ly/ComputeScalar
That is a great explanation of the behavior Paul!
I wish I understood more about query plans, so I could dig into them as you...
September 4, 2012 at 6:53 pm
ISDATE is sensitive to DATEFORMAT (Google "SQL DATEFORMAT"), so that could be your problem.
Personally I don't think I'd use it. Perhaps constructing a test (maybe a FUNCTION) for the...
September 4, 2012 at 6:38 pm
Viewing 15 posts - 2,851 through 2,865 (of 3,957 total)