Viewing 15 posts - 4,576 through 4,590 (of 7,597 total)
TheSQLGuru (12/4/2015)
December 7, 2015 at 10:21 am
Code below should filter it for a single month, as specified in @month:
LEFT JOIN (SELECT COUNT(CA.app_id) AS Approved_Count, SO.source_id
...
December 7, 2015 at 10:05 am
I'd urge you to use triggers rather than application code for this type of thing. This makes sure the code is consistently applied and prevents having to re-write code...
December 2, 2015 at 1:23 pm
I'd create such a proc in the master db and mark it as a system object so that it could be used in all dbs.
I'd also at least:
1) optionally allow...
November 30, 2015 at 4:40 pm
In more detail, index "FDX_spG_NU_QA_V12" does not contain at least one of the columns:
MC.col1 / MC.col2 / MC.col3
If you believe such an index could be helpful enough to this query,...
November 30, 2015 at 3:57 pm
It was my understanding that SQL only acquired RAM when it needed it. That is, it doesn't automatically grab the max ram as soon as it starts. Of...
November 30, 2015 at 3:47 pm
Using the spreadsheet I just posted, let's look at the xactControlPoint table. Notice my script adds an "ident" column before each missing index stat. That is to reference...
November 30, 2015 at 10:12 am
--Edit: removed, exact dup of next post, I got an error during posting and didn't realize it had actually posted anyway.--
November 30, 2015 at 10:11 am
I've adjusted the spreadsheet you originally posted to have both missing index and index usage stats. That is the minimum info needed to analyze indexes. I've pulled the...
November 30, 2015 at 8:56 am
This may be more efficient (most people use LEFT rather than RIGHT join, so I switched it to that):
SELECT l.value, p.productname
FROM dbo.ProductTable p
LEFT OUTER JOIN (
SELECT...
November 27, 2015 at 2:08 pm
Re1 (11/27/2015)
tbl_documents table is having 700 rows and tbl_documentdetails table is having 1.6 millions+ rows.
I have created index on tbl_documentdetails table on invoiceid,orderid,billid column as per sequence used in join...
November 27, 2015 at 10:34 am
This isn't really all that complex, and we can use code that doesn't require any specific date setting(s). I used a CROSS APPLY just to get the date calc...
November 27, 2015 at 10:25 am
Welsh Corgi (11/26/2015)
I'm looking to partition by year.
My current archive code looks up the year in a lookup table.
I want to mimic that logic...
November 27, 2015 at 8:06 am
Welsh Corgi (11/25/2015)
Scott,Please see attach Excel file.
Unfortunately I had a hard time interpreting what you were telling me to do.
Thank you for all of your you help.
Hmm, in the spreadsheet...
November 27, 2015 at 8:03 am
Sergiy (11/25/2015)
Welsh Corgi (11/25/2015)
Scott,Please see attach Excel file.
Unfortunately I had a hard time interpreting what you were telling me to do.
Thank you for all of your you help.
The stats look...
November 27, 2015 at 8:02 am
Viewing 15 posts - 4,576 through 4,590 (of 7,597 total)