Viewing 15 posts - 451 through 465 (of 1,838 total)
Back to the original topic, my preference for an OLTP system is to use NULL when there can be an unknown value. For an OLAP type system such as a...
July 6, 2018 at 10:11 am
July 6, 2018 at 10:02 am
July 5, 2018 at 3:12 pm
I'd start with a high level summary of all the things in tempDB before looking for specific sessions:USE tempdb;
SELECT SUM(unallocated_extent_page_count) AS FreePages,
CAST(SUM(unallocated_extent_page_count)/128.0 AS decimal(9,2))...
July 3, 2018 at 3:10 pm
July 3, 2018 at 2:50 pm
Does the ID column of Table1 have unique values? If not, that could be a potential problem since you join Table1 to itself in the subquery. If it is unique,...
July 3, 2018 at 1:47 pm
July 3, 2018 at 1:34 pm
July 3, 2018 at 10:20 am
You could try doing a CROSS APPLY such as in this article to operate on the data in a set based fassion:
http://www.sqlservercentral.com/articles/CROSS+APPLY+VALUES+UNPIVOT/91234/
Then you can do aggregates...
June 29, 2018 at 2:08 pm
June 28, 2018 at 11:58 am
Again, I suppose the real issue is how much free space do you need on the disk, not how much unused space do you have in the database. Have you...
June 28, 2018 at 10:35 am
To verify what files are used by a specific database and how much of them are used, you can run this script in the database:SELECT DB_NAME() AS...
June 27, 2018 at 12:11 pm
June 25, 2018 at 1:16 pm
June 25, 2018 at 12:31 pm
This may be a silly question, but is there a reason you can't schedule the SQL Agent job in SQL Agent?
June 25, 2018 at 12:17 pm
Viewing 15 posts - 451 through 465 (of 1,838 total)