Database and Disk Size - PowerShell Script
Every time we do a capacity analysis we need to analyse the database size (free and used) and the disk...
2012-08-14
6,057 reads
Every time we do a capacity analysis we need to analyse the database size (free and used) and the disk...
2012-08-14
6,057 reads
The below script is used to find the disk size for a set of servers,
## Script to Find List of...
2012-08-14
2,022 reads
Today I came accross white paper "Troubleshooting Performance Problems in SQL Server" by Sunil Agarwal, Boris Baryshnikov, Tom Davidson, Keith...
2012-08-14
1,249 reads
I developed the below script to find the details of a AD user and the AD groups he is associated...
2012-08-13
7,927 reads
This is one of the powershell script I have been using quite regularly from the day I developed. Most of SQL...
2012-08-13
2,167 reads
Whenever there is a network issue or a SQL server browser issue we might need to connect SQL server in different...
2012-08-09
1,255 reads
One of my client accidentally executed a 32 bit service pack on a 64 bit SQL Server, the service Pack...
2012-08-09
1,564 reads
we often face a situation to move SQL server object beween servers or databases, when you have constant table list...
2012-08-08
5,604 reads
Blocking in in SQL Server by SPID -2 happens due to Orphan DTC transaction, for instance whenever a data source...
2012-08-06
5,776 reads
Whenever I ask a SQL candidate in an interview the difference between DELETE and TRUNCATE TABLE, the first answer I...
2012-08-06
2,451 reads
By Steve Jones
A bit of a photo dump, but a few fun memories for me from...
By ReviewMyDB
Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...
Note: This is more of a note to myself than an attempt to preach...
Comments posted to this topic are about the item Black Friday Gadgets
Comments posted to this topic are about the item Protecting Multi-Step Data Changes with...
Comments posted to this topic are about the item Switching Schema III
I run these queries:
SELECT COUNT(*) FROM dbo.Beer SELECT COUNT(*) FROM etl.beerI get 25 as the result for dbo.beer and 1 for the result for etl.beer. Both tables have identical sructures and both of these are nonpartitioned tables. I run this code:
ALTER TABLE dbo.beer switch TO etl.beer go SELECT COUNT(*) FROM dbo.Beer SELECT COUNT(*) FROM etl.beerWhat happens? See possible answers