Service Logon Failure (ObjectExplorer) stopped my SQL Server Agent from starting. My password had changed, so updating it in the service fixed it.
External Profiles: Keep Email Out of the Key
External profiles need a stable scoped identity key. Keep mutable email values separate and reject duplicate identities.
Whole Unit Allocation: Keep a Proportional Split Exact
Whole unit allocation keeps a fixed budget intact. I’d calculate base shares first, then distribute residual units using a stable tie rule. Check equal weights, a zero budget and zero-weight members.
SQL SERVER – Import CSV File into Database Table Using SSIS
How to import CSV file into database table using SSIS, step by step with images, so you can automate the load instead of running Bulk Insert by hand.
SQL SERVER – Common Table Expression (CTE) and Few Observation
A few observations on Common Table Expression (CTE): it does not replace temp tables, begin it with a semicolon, and its scope is one statement.
SQL SERVER – What Kind of Lock WITH (NOLOCK) Hint Takes on Object?
What kind of lock does WITH (NOLOCK) take? Vinod Kumar made me think again: it takes a schema lock, and a quick query on sys.dm_tran_locks proves it.
SQL SERVER – 2008 – 2008 R2 – Create Script to Copy Database Schema and All The Objects – Data, Schema, Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects
Use the SQL Server script generator wizard to copy database schema, data and all objects, then run the large script with SQLCMD on the new instance.





