AUTO_UPDATE_STATISTICS
The default option is ON. How do the statistics increase the performance of your SQL Server query execution? The statistical histograms are used by the Query Optimizer to choose the optimal query execution plan. If a query predicate contains a column with statistics, the Query Optimizer does not have to estimate the number of rows... » read more
SQL Server Administration Blog Sites
Blog Sites https://blog.sqlauthority.com/
Creating Linked Servers
Link Server with a Specific Name ARCHIVE -> MyDB03 ARCHIVE is the link server name. MyDB03 is the actual database server name. Sources: https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/linked-servers-database-engine?view=sql-server-2017
RPC and RPC Out option on a SQL Server linked-server
The first RPC setting is mainly for a legacy feature called Remote Server, which is documented here. http://msdn.microsoft.com/en-us/library/ms190187.aspx You probably will not be using remote servers in SQL Server 2005 -SQL Server 2014 versions. If you do happen to use “remote servers”, the RPC setting enables a certain security feature. Sources:
SQL Server DateTime Type
Data type Comments Time Only keeps track of nanoseconds in a day. There is no reference to a date.Is stored using between 3 and 5 bytes. Date Only keeps track of days, starting 01/01/01 to 31/12/9999.Takes 3 bytes for storage. SmallDateTime Can be used to store dates between 01/01/1900 and 06/06/2079.Also allow to keep track... » read more
SQL Server Setup Error – There was an error generating the XML document. Error code 0x84B10001.
Error: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\Summary.txt If we look at the start place of the error, it says System.Security.Cryptography.CryptographicException. This means that there are some issues while encryption of the data. And the real error message is “The requested operation cannot be completed. The computer must be trusted for delegation and the current user account... » read more
Copying Data from One Database to Another
First setup a link server to the other database.
What is best tool to compare two SQL Server databases (schema and data)?
Microsoft Visual Studio Community Edition (Free) has a tool called Data Compare and Schema Compare. Visual Studio -> Tools -> SQL Server Red-Gate http://www.red-gate.com/products/sql-development/sql-compare/ http://www.red-gate.com/products/sql-development/sql-data-compare/
Transactional Replication vs Availability Groups
Transactional Replication Configuration is not that easy. Replication is always table level. Lot of maintenance work. There is a latency and latency may increase in busy system. Need to configure it for each table. Not a high availability option.You can use it as a DR strategy. AlwaysOn High Availability and Disaster recovery strategy.Built on top of Windows Failover Clustering... » read more