Viewing 15 posts - 1,141 through 1,155 (of 1,216 total)
Hello Hans,
offhand and not knowing your database I can think of two reasons for such construct (although I'm not sure whether it can work this way in a SP... but...
July 28, 2004 at 6:22 am
Noeld's solution seems to be fine - there is just one question about the word "previous" in original post.
In case the records are not always ordered by date ascending, and...
July 28, 2004 at 4:09 am
In case there are Groups with no members (no corresponding entry in Customerdtl) and you want to display these as well :
SELECT g.GroupId, count(c.CustRpt)
FROM CustomerGroup g
LEFT JOIN Customerdtl c ON...
July 20, 2004 at 1:26 am
That's strange... I never had problems shrinking tempdb via EM. My standard action is : Shrink database/Files, then select "Shrink file to", set the size (e.g. 5000), then OK, and then Cancel....
July 20, 2004 at 1:00 am
Hmm... if it's just the application that can't access those tables, couldn't there be some issue with table ownership (e.g. all other tables your application uses having owner BBQ, while your...
June 11, 2004 at 6:59 am
As far as I can tell, AUTO SHRINK is not a good option in most cases. It slows down the server - sometimes rather drastically - when the system decides...
June 11, 2004 at 6:35 am
DAV,
your solution is remarkably similar to that of Kenneth :-)) But I agree, this is what I prefer, too. I need such conversion quite often, and in the beginning I...
June 11, 2004 at 6:16 am
I agree, this question (or rather supplied answers) was not entirely correct. To pick an "odd man" out, there has to be only one of them. The question in question...
June 7, 2004 at 8:05 am
Sure, of course you can. Open your job, then the respective step and enter the SQL into "Command" field - all including DECLARE etc. - it works fine.
June 3, 2004 at 1:19 am
What about this (assuming that originally the respective step command was "EXEC some_procedure") :
DECLARE @today datetime
SELECT @today = GETDATE()
IF MONTH(@today) = MONTH(@today + 1)
BEGIN
EXEC some_procedure
END
If it is the last of the...
June 2, 2004 at 7:41 am
Hello Cory,
I can't explain why it is so, and whether it is a bug or not, but that's how it works :-). I've seen this many times, so it seems...
May 28, 2004 at 1:31 am
That's how I understood it, Antares... in fact that means that the name of the function is a bit misleading. It is easy to understand that as "contains only numbers",...
May 28, 2004 at 1:01 am
That's really strange... it only returns 1, if there is just one occurence of the character D or E, and it starts to evaluate as Not numeric if more than...
May 27, 2004 at 2:14 am
Hello Thor,
I don't fully understand the structure and the way you want to display missing days, but I'll try. I see there is some cursor used to fetch rows... well, that...
May 21, 2004 at 4:53 am
Hello Dave,
look at "Database Object Owner" - as far as I know, the same rules apply to all objects. Also, look at "Programming Stored Procedures" (qualifying names inside stored procedure)...
May 13, 2004 at 1:50 am
Viewing 15 posts - 1,141 through 1,155 (of 1,216 total)