New answers tagged sql-server-2012
0
votes
Difference between logical and physical reads/writes
As a DBA's stand point we don't need to worry about logical read; it's our most desired thing. While physical read is where we can have the most PTO.
Logical read is getting a data from Cache or ...
1
vote
Insert 2 output result sets from sp_spaceused into Temp Table (SQL Server non-2016)
A trick to inserting two result sets into one table? No. I do not believe that is possible.
However, what I've done in the past, as I'm sure you have experimented with, is modify the code inside the ...
-1
votes
Insert 2 output result sets from sp_spaceused into Temp Table (SQL Server non-2016)
CREATE TABLE #DatabaseSizes_4
(
database_name NVARCHAR(128),
database_size VARCHAR(18),
unallocated_space VARCHAR(18),
reserved VARCHAR(18),
data VARCHAR(18),
index_size ...
0
votes
Get Point from Another Table based on Category and Value Range
CROSS APPLY a PIVOT table -
MSDN Documentation here - https://learn.microsoft.com/en-us/sql/t-sql/queries/from-using-pivot-and-unpivot?view=sql-server-ver16
I populated your data using this code -
...
Top 50 recent answers are included
Related Tags
sql-server-2012 × 4529sql-server × 3273
performance × 274
t-sql × 271
availability-groups × 245
sql-server-2008 × 183
sql-server-2008-r2 × 169
backup × 164
sql-server-2014 × 132
ssms × 129
replication × 114
permissions × 112
query-performance × 102
restore × 98
ssis × 90
index × 88
clustering × 86
transaction-log × 83
stored-procedures × 82
security × 82
sql-server-agent × 78
memory × 76
execution-plan × 75
sql-server-2016 × 73
windows-server × 67