Viewing 15 posts - 41,281 through 41,295 (of 59,102 total)
Lynn Pettis (11/6/2009)
Jeff Moden (11/6/2009)
...What? No comments on the sample code I provided? I really thought you'd have more to add. 😉
I'm not done posting on...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 6, 2009 at 4:16 pm
aravind.s (11/5/2009)
Hi.Try this
Select a.col1,a.col2,(select sum(hrs) from table where emp_id <=a.emp_id) ‘col3’
From table a
assuming empid is your key to the table and You want the running total of HRS column.
BE VERY...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 6, 2009 at 4:04 pm
Ummm... looking up the two functions in Books Online is certainly the way to go folks, but stop and think about WHY someone wrote the code like that. SUM...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 10:12 pm
Heh... good interview question.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 10:07 pm
sindbad7000 (11/5/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 10:05 pm
rizwan.inam (11/5/2009)
How to Manage sub activities StartDate and EndDate
Google "Slowly changing dimension" and see the article on WikiPedia for how to manage that.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 10:03 pm
I know squat about reporting services but, hopefully, my response will act as a "bump" for your post, someone who understands SSRS will see it, and you'll get your answer.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:54 pm
Stop trying to use OPENROWSET to do imports. Use BULK INSERT instead.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:42 pm
Vicki Peters (11/5/2009)
Does anyone know if there is any difference in performance when you put your criteria with your INNER JOIN rather than in your WHERE clause?
For example:
SELECT t1.Id
FROM dbo.Table1...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:38 pm
Build the table with 1 "typical" row in it and all of the necessary indexes. Run DBCC UPDATE USAGE and then run sp_SpaceUsed on the table. Save the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:36 pm
Heh... SSIS fast? Guess I'll never know. 😉
This is a simple task in T-SQL using BULK INSERT and even if you forget to limit the batch size (they actually...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:26 pm
AnzioBake (11/5/2009)
Looking at the attached SP this is a Oracle Dbref SYSDATE and RAISE_APPLICATION_ERROR
are not SQL functions
Heh... AAAAAAHHHHHHHGGGGGG!!!!! I LOOKED, I LOOKED. IT IS ORACLE!!!!! MY EYES!!!...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:20 pm
I'd recommend devloping a different philosophy... test on a dev box before you move to production to be absolutely sure it works correctly.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:16 pm
Thanks for posting the data example but most folks on this forum like to actually test their code with your data before they post an answer. This running total...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:08 pm
Glad I could help. As a side bar, I pretty much refuse to use SSIS for any form of ETL...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2009 at 9:04 pm
Viewing 15 posts - 41,281 through 41,295 (of 59,102 total)