Viewing 15 posts - 691 through 705 (of 2,007 total)
mtassin (5/3/2012)
I'm sure it's my not getting your case statement, but I keep getting...
May 3, 2012 at 9:04 am
Where are you hosting your .bak? I'll take a look at it sometime tonight if I can.
May 3, 2012 at 8:34 am
I wasn't aware it had been deprecated, and reading on BOL I still don't think it has.
I do agree that CROSS JOIN is better than a comma, in this case...
May 3, 2012 at 8:31 am
Something like this?
DECLARE @date DATETIME = '9999-06-05 21:13:49.907';
SELECT CAST(DATEADD(n, CASE WHEN @date > ending THEN DATEDIFF(n, ending, @date) ELSE 0 END,
...
May 3, 2012 at 8:13 am
mtassin (5/3/2012)
May 3, 2012 at 7:45 am
blandry (5/3/2012)
SUCCESS! Your first block of code works - no errors.
Do I need to try the second block if the first one works? (For now, I wont...
May 3, 2012 at 7:38 am
blandry (5/3/2012)
This is the error I get...
Msg 8120, Level 16, State 1, Procedure usp_rpt_AgingProfile_Test, Line 37
Column 'c.modDate' is invalid in the select list because it is not contained...
May 3, 2012 at 7:32 am
kate-395233 (5/3/2012)
This is how I modified it (I don't have access to the master db) - and added more rows
DECLARE @count INT
SET @count = 1
DECLARE...
May 3, 2012 at 4:20 am
lanky_doodle (5/3/2012)
What I want to do is count all the cases a user has. At the moment it (correctly) shows the number of cases for...
May 3, 2012 at 4:11 am
From BOL.
Best Practices
May 3, 2012 at 3:54 am
lanky_doodle (5/3/2012)
I have a table that contains the name type of a user, and a table that contains the user;
NAMES table:
NAMENO | NAME |...
May 3, 2012 at 3:43 am
blandry (5/2/2012)
I am however getting an error and I cant figure it out! Look at this line that is choking...DATEADD(MONTH, DATEDIFF(MONTH, 0, DATEADD(M,n,Files.LastModified)), 0) AS monthModified
My bad, was being...
May 3, 2012 at 1:19 am
michael vessey (5/2/2012)
Cadavre (5/2/2012)
michael vessey (5/2/2012)
May 2, 2012 at 8:31 am
michael vessey (5/2/2012)
May 2, 2012 at 8:19 am
NLV (5/2/2012)
Hi,I want to insert 100 rows like (1,2,3,4,..100) without using loops into a table using CTE. can you please help.
WITH CTE(n) AS(SELECT 1
...
May 2, 2012 at 6:28 am
Viewing 15 posts - 691 through 705 (of 2,007 total)