Viewing 15 posts - 6,046 through 6,060 (of 7,616 total)
OK, sorry. I guess I interpreted "any other benefits" too broadly.
June 3, 2014 at 1:47 pm
Just curious. Since your table has at least 100M rows, did you review the indexes, particularly the clustered indexes?
That usually makes vastly most difference than how the...
June 3, 2014 at 1:36 pm
Yeah, no gaps will be a royal pain to implement.
If you can allow "voided" gaps, then I think a standard identity would handle this, don't see the need for using...
June 3, 2014 at 1:27 pm
WHERE
[Entered Date] >= DATEADD(MONTH, 6, DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE())
- CASE WHEN MONTH(GETDATE()) < 7 THEN 1 ELSE 0...
June 3, 2014 at 11:25 am
select times, LEFT(times, len(times) - 3) * 60 + RIGHT(times, 2) as seconds
from @time
June 3, 2014 at 11:17 am
The restores themselves per se wouldn't cause big tempdb growth.
However, I think it's possible that some settings in those dbs might (for example, snapshot settings).
As noted by all,...
June 3, 2014 at 10:58 am
You can use different RAID levels for data vs logs. Data often does best with RAID5, whereas logs often do best with RAID10.
June 3, 2014 at 10:50 am
sirishgreen (6/3/2014)
and DE_Date between
'20140906' and '20140906'
This is being read as The 9th of June by SQL server.
After I looked...
June 3, 2014 at 10:33 am
To return a single "OR'd" row, I think you can just add MAX()es to the "standard" & conditions:
SELECT
STUFF(
MAX(CASE...
June 3, 2014 at 10:23 am
I think the overhead of XML is unwarranted here, if I understand the desired output correctly. needed[/i].]
But,...
May 30, 2014 at 3:48 pm
Not 100% sure what output you want: the warranty date in a separate column based on its status or a status column itself, like below.
SELECT
machNameTab.machName
,warranty
,CASE WHEN warranty...
May 30, 2014 at 11:28 am
If you're saying all the tables already have the correct clustered indexes, as I noted in my previous post, I don't agree with that for at least:
dbo.DCSubRegionTran
This isn't something where...
May 30, 2014 at 11:16 am
First, as always, verify that you have the best clustered index on each table.
For example, just from a very quick look, table:
dbo.DCSubRegionTran
should have:
DCSRFiscYear
as its first clustering column, assuming you (nearly)...
May 30, 2014 at 10:17 am
I'd urge you to add a bit flag to the PROD table to indicate whether a given row has 7 consecutive valid flow values or not, rather than recomputing every...
May 28, 2014 at 2:23 pm
SELECT
ISNULL(sales.ItemCode, returns.ItemCode) AS ItemCode,
ISNULL(sales.total_sales, 0) - ISNULL(returns.total_returns, 0) AS NetSales
FROM (
SELECT T0.ItemCode, SUM(T0.LineTotal) as total_sales
...
May 27, 2014 at 11:55 am
Viewing 15 posts - 6,046 through 6,060 (of 7,616 total)