Viewing 15 posts - 1,156 through 1,170 (of 3,957 total)
mickyT (11/7/2013)
If you have a look at this article[/url] by Jeff Moden, it will explain how to group by contiguous islands of dates. This is essentially what you are...
November 7, 2013 at 6:12 pm
spaghettidba (11/7/2013)
Please read the first article linked in my signature line: you'll...
November 7, 2013 at 6:10 pm
erikd (11/7/2013)
I've gotten some feedback...
November 7, 2013 at 5:37 pm
mark 4643 (11/7/2013)
dwain.c (11/6/2013)
There may very well be an easier way to do this, but this is what I came up with:
Thanks!
I had played around with a derived table and...
November 7, 2013 at 5:35 pm
Jeff Moden (11/6/2013)
dwain.c (11/5/2013)
Jeff Moden (11/5/2013)
dwain.c (11/5/2013)
Jeff Moden (11/5/2013)
dwain.c (11/5/2013)
For what it's worth, I'm in favor of a selective culling of the gene pool. 😛
I assure you, it's just words...
November 6, 2013 at 8:45 pm
Based on cursory review of the information surrounding the quote, I'm in a position of "initial reluctance to agree."
I'm thinking that part of that 97% he talks about should be...
November 6, 2013 at 8:34 pm
Jeff Moden (11/6/2013)
dwain.c (11/6/2013)
Jeff Moden (11/6/2013)
GilaMonster (11/5/2013)
Jeff Moden (11/5/2013)
November 6, 2013 at 8:09 pm
Something like this might work though:
DECLARE @InventoryNames varchar(100)
DECLARE @sql nvarchar(max)
SET @sql=
'
WITH names(n) AS
(
SELECT Name
FROM dbo.iNamesExcel$
)
INSERT INTO TEMP
SELECT * FROM OPENQUERY (
ADSI,
''SELECT displayname,
samaccountname,
telephonenumber,
mail,
department,
title
FROM ''''LDAP://domain name obfuscated''''
WHERE
objectClass = ''''user''''...
November 6, 2013 at 7:56 pm
Alan.B (11/6/2013)
DECLARE @names varchar(max);
WITH names(n) AS
(
SELECT Name
FROM dbo.iNamesExcel$
FOR XML PATH('')
)
SELECT @names=CHAR(39)+LEFT(n,LEN(n)-1)+CHAR(39)
FROM names
Then, in your DSQL change your and...
November 6, 2013 at 7:52 pm
Oh, and by the way. This is the kind of allocation problem that bean counters are going to jump on you about if you don't get the rounding just...
November 6, 2013 at 6:28 pm
There may very well be an easier way to do this, but this is what I came up with:
WITH AllDepts AS
(
SELECT DeptID, JobNo
...
November 6, 2013 at 6:23 pm
Here is your code posted so others can see it easily.
-- Using SQL2008 R2
IF OBJECT_ID('tempdb..#Sales') IS NOT NULL
DROP...
November 6, 2013 at 5:45 pm
Jeff Moden (11/6/2013)
GilaMonster (11/5/2013)
Jeff Moden (11/5/2013)
November 6, 2013 at 5:37 pm
Glad to hear you got it working finally.
Obviously, what I gave you was impossible for me to test.
November 6, 2013 at 5:33 pm
Jeff Moden (11/6/2013)
November 6, 2013 at 5:31 pm
Viewing 15 posts - 1,156 through 1,170 (of 3,957 total)