Viewing 15 posts - 4,096 through 4,110 (of 8,731 total)
Alvin Ramard (9/28/2015)
Kristen-173977 (9/28/2015)
Alvin Ramard (9/28/2015)
WHERE YourDateColumn >= @StartDate
AND YourDateColumn < @DayAfterEndDate
and not:
WHERE YourDateColumn...
September 28, 2015 at 10:02 am
Tavis Reddick (9/28/2015)
Luis Cazares (9/28/2015)
You shouldn't create code based on entities, you should create code based on processes.
Could you expand on this please? We consider the stored procedures as an...
September 28, 2015 at 8:40 am
You're welcome. I hope that you learned something with this thread.
September 28, 2015 at 7:33 am
With just over 10,000 rows, most things should run fast. Once it keeps growing, that might be an issue. You shouldn't create code based on entities, you should create code...
September 28, 2015 at 7:30 am
Does this calculates the date as you want?
SELECT somedate, DATEADD( YY, (DATEDIFF( MM, '19000630', somedate)-1)/12, '19010630')
FROM (VALUES(CAST('20150625' AS datetime)),
...
September 25, 2015 at 1:42 pm
This could be due to page splitting and table size. I'm not sure if rebuilding the clustered index with a lower fill factor could prevent this issue.
September 25, 2015 at 12:51 pm
It means that it's comparing the value returned by the subquery to check if it's greater than the value from cw.Inv.
It also indicates a bad query design, but there's not...
September 25, 2015 at 12:05 pm
Jason A. Long (9/25/2015)
wendy elizabeth (9/25/2015)
where ISNULL(I.Active, 0) = 1 AND ISNULL(AN.AccountNumber,0) IN (@Account).
Would you tell me what...
September 25, 2015 at 10:26 am
"Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime."
Here's the article on Books Online (BOL)....
September 25, 2015 at 10:23 am
I'm not sure if you're familiar with the method explained in this article: http://www.sqlservercentral.com/articles/CROSS+APPLY+VALUES+UNPIVOT/91234/
Here's a way to use it and create a dynamic pivot.
DECLARE @sql nvarchar(max);
SELECT @sql = 'SELECT SO.[Column...
September 25, 2015 at 10:07 am
mw112009 (9/25/2015)
Reason: EXISTS is just a another subquery that runs for each row that was fetched. Subqueries take time.
The LEFT JOIN will figure out the data set just once...
September 25, 2015 at 9:41 am
danielfountain (9/25/2015)
Luis Cazares (9/25/2015)
I'm not sure if this is a good idea:
However i do think this would work.... VERY slowly though. I keep feeling there is something i am...
September 25, 2015 at 9:27 am
So you're not doing log backups?
Either you change your recovery mode to simple or you start taking log backups and managing the transaction log correctly.
Changing the recovery model to simple...
September 25, 2015 at 8:47 am
It seems right to me. Just as a suggestion, whenever you're using more than one table, qualify your columns and use an alias for your tables. This won't change the...
September 25, 2015 at 8:33 am
Viewing 15 posts - 4,096 through 4,110 (of 8,731 total)