Viewing 15 posts - 24,721 through 24,735 (of 59,099 total)
Like I said, it's probably an interview question where there's not an actual correct answer other than "It Depends". It's a nice short question that requires a lot of...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 19, 2014 at 12:11 pm
ramadesai108 (1/18/2014)
I searched on the internet for hours but cannot resolve my issue, so this is my last resort.
I have 2 instances of SQL Server 2012 on...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 10:33 pm
ramadesai108 (1/18/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 10:24 pm
ramana3327 (1/18/2014)
I have a table with some columns & rows. I want to do insert and update on that table. Which action is faster inserting 1 row or updating 1row?...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 10:18 pm
rabih_karam (1/18/2014)
But i have a solution for you as i understand from your question
Declare a table and then select your column...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 9:53 pm
Johnny D (1/18/2014)
That is exactly what I needed. I would have never have thought of that approach to solving it. I was trying all kinds of tricks including putting...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 9:49 pm
pietlinden (1/18/2014)
Is the same true if you use a common table expression to calculate the running total?
Yes except that it's likely that the CTE will use more reads than a...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 9:45 pm
Johnny D (1/18/2014)
Thank you for your input thus far.
To tell you what I have tried so far. I have had an attempt using SSIS but as I am new...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 12:07 pm
Oooooo... very nice article, Rodney. It really hit a sweet spot with me because I'm taking care of a disk space problem tonight during the "maintenance period" and I'm...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 9:48 am
a4apple (1/17/2014)
refer to this post...http://sqlsaga.com/sql-server/how-to-calculate-running-totals-in-sql-server/%5B/url%5D
step by step explained...
Same thing there. It's a Triangular Join. No matter what, it will always use more resources than you could possibly imagine....
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 9:28 am
Ford Fairlane (1/15/2014)
Thanks for all your input.
This is the working query.
SELECT
YEAR(CAST (a.ENDDATE AS DATETIME)),
MONTH(CAST (a.ENDDATE AS DATETIME)),
(
SELECT
...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 9:24 am
Just create the Temp Table using a CREATE TABLE statement (Temp Table names begin with the # sign) and then use normal inserts to populate it.
Temp Tables have a...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 9:12 am
Lowell (1/17/2014)
you'll need to grab the right version off of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 8:54 am
Lynn Pettis (1/18/2014)
rabih_karam (1/18/2014)
But i have a solution for you as i understand from your question
Declare a table and then select...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2014 at 8:39 am
Lowell (1/17/2014)
by leaving it out, you are just taking advantage of some email clients smart features of filling in missing tags,...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 17, 2014 at 9:19 pm
Viewing 15 posts - 24,721 through 24,735 (of 59,099 total)