SQL Server Video Training
Here are a few links that provide video training on SQL Server. PluralSight is very well known for it’s quality videos. However there…
Read MoreHere are a few links that provide video training on SQL Server. PluralSight is very well known for it’s quality videos. However there…
Read MoreThe order in which we write T-SQL queries happen in this order:
1 2 3 4 5 6 |
SELECT FROM WHERE GROUP BY HAVING ORDER BY |
however, the order the Query Processor on SQL Server processes…
Read MoreHere is a nifty query that will display all the tables and columns set as IDENTITY in a given database:
1 2 3 4 5 6 7 8 9 10 11 |
USE AdventureWorks2012 GO SELECT OBJECT_NAME(object_id) AS 'table_name', name AS 'column_name', seed_value, increment_value, last_value, is_not_for_replication FROM sys.identity_columns ORDER BY 1 |
Views –…
Read MoreThis post is consisted of mostly direct quotes from the article posted at the bottom of the page. I put them here to…
Read MoreI follow a few rules: 1. Primary keys should be as small as necessary. Prefer a numeric type because numeric types are stored…
Read MoreHere is a good blog post on SQL Server coding and naming conventions: Database coding conventions, best practices, programming guidelines Views – 2978
Read MoreBelow is my posting on dealing with upgrading your SQL Server to either 2012 or 2014 and having to deal with databases that…
Read MoreThis code will do the following: 1. Display the current INDENT_CURRENT value for the identity column for the specified table. This value should…
Read MoreHere is a good article on syncing SQL logins across servers with the same SIDS to log-shipped databases will propagate the correct access…
Read MoreHere is one way to take a database offline. This will prevent any reads, writes or even a connection to it (including any…
Read More