Viewing 15 posts - 34,891 through 34,905 (of 59,102 total)
Craig Farrell (2/21/2011)
Jeff Moden (2/21/2011)
Umm... nope... I believe that's a problem, as well.<snip proof>
The only way to do this using the same Temp Table name is with dynamic SQL.
Dangit, you're...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 5:17 pm
jason-772533 (2/23/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 5:12 pm
Could you post the code that didn't do the trick? Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 5:07 pm
It's actually not the same result. The answer would appear in one or the other column depending on the bit map. Now, WHY they needed it that way,...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 4:49 pm
Kevin Feasel (2/14/2011)
This is a just-so story that I'm coming up with, but it sounds like it makes sense, at least to me... 🙂
I don't know about it being...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 4:30 pm
george.frewin (2/18/2011)
thanksI am now getting stuck into SSIS 🙂
To put a different slant on it, I think that SSIS is overkill. 😉 A nice, short, sweet BULK INSERT does...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 4:22 pm
SQL_Student (2/18/2011)
I am truly my own teacher... I got it to work:w00t:
select code, MAX(effective_date) as eff_date
from LIST_PRICES
group by CODE
having MAX(EFFECTIVE_DATE) > 0
Well done! I love it when folks science...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 4:19 pm
If you have a session that created a Temp Table, just do the following without closing the session and without changing sessions (windows in SSMS)...
EXEC TempDB..sp_help #nameoftemptable
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 4:11 pm
I'll also add that if you use ISNULL as the final "step" in any of the column derivations, it will create a NOT NULL column in the Temp Table.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 4:03 pm
As a bit of a sidebar... what happens when one of your team members changes her name due to marriage? What happens when you have two people employed with...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 4:01 pm
Gadgetman Stewart (2/27/2011)
I understand your point about ExecuteScalar() will only "see" one result set, so indeed if my SP contains:-
BEGIN TRY
DECLARE @s-2 INT;
SET @s-2 = 1/0;-- Cause an...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 3:48 pm
Let's look at it another way. When would you NOT check either table of Notes? I suspect the answer is that you'd always have to check both which...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 3:38 pm
Craig Farrell (2/27/2011)
Jeff Moden (2/27/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 3:26 pm
Heh... thanks for the feedback, ZA. Most people don't get the pun built into that particular table name. 😛
Just as a reminder and a friendly suggestion... the method I...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 2:36 pm
LutzM (2/27/2011)
i have deadline on monday and if i dont complete it ,i will...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2011 at 2:28 pm
Viewing 15 posts - 34,891 through 34,905 (of 59,102 total)