Viewing 15 posts - 106 through 120 (of 123 total)
Getting certifiied may help but from someone who read the Joe's to Pro's series, don't use it exclusively. They cover a lot and the cost of the books are...
August 7, 2012 at 10:19 am
Either that or you need to us the variable outside of the quotes if it holds a dynamic value.
Mark
August 6, 2012 at 10:44 am
I believe "if exists" has to be used in the where clause and that's causing the issue.
Remove everything after your CTE and try this:
declare @intCount int
select @intCount = (SELECT count(*)...
August 1, 2012 at 5:37 am
Pinal Dave has a brief overview of setting of DBMail:
There's a part aat the end about sending a test email. That should verify if it's set up correctly.
Mark
July 31, 2012 at 5:41 am
Make sure named pipes is enabled. That and install any SP's.
Mark
July 12, 2012 at 4:37 pm
Post the query you're working in and we'll take a look at it and advise.
Mark
July 4, 2012 at 8:40 am
Thanks for all the links. I'll read them later this evening when I get home.
Thanks,
Mark
July 3, 2012 at 8:11 am
DECLARE@Student TABLE( StudentName VARCHAR(50), Question INT, Answer VARCHAR(50))
INSERT@Student
SELECT'StudentA' StudentName, 1 Question, 'some' Answer UNION ALL
SELECT'StudentA', 2, 'thing' UNION ALL
SELECT'StudentA', 3, 'any' UNION ALL
SELECT'StudentA', 4, 'thing' UNION ALL
SELECT'StudentA', 5, 'every thing'...
June 30, 2012 at 4:39 pm
J Good (6/28/2012)
June 28, 2012 at 5:28 pm
I think the only one that can really answer that question is the original developer.
Mark
June 28, 2012 at 5:23 pm
You may not need the temp table. In fact, the query seems rather complicated for what you're trying to do.
I created 2 tables to test this:
Headers
----------------
HeaderID (PK)
Header ...
June 27, 2012 at 7:41 pm
Patrick,
Thanks, I'll check them out!
Mark
June 17, 2012 at 8:07 am
All these replies got me wondering about the role of the PostID and I decided to add it to CTE and this worked:
with ThreadTable(ThreadID, MaxPostID, ThreadCount)
as
(
select top 5 FP.ThreadID, max(PostID)...
June 12, 2012 at 12:05 pm
All,
I'm still getting numerous records per ThreadID when I'm only interested in 1.
I'll keep at it and appreciate all the suggestions.
Mark
June 12, 2012 at 11:51 am
Viewing 15 posts - 106 through 120 (of 123 total)