T-SQL query to copy the rows of all the tables from one database to another database only if they have rows in Source DB and exact same Schema in both Source and Destination DB.
2019-11-07 (first published: 2019-10-30)
5,471 reads
STRING_SPLIT with Index as Table-Valued Function
2019-11-01 (first published: 2019-10-19)
6,716 reads
STRING_SPLIT with Index as Table-Valued Function
2019-11-01 (first published: 2019-10-22)
436 reads
Function to pad bigint with leading 0's or other single character
2019-10-31 (first published: 2019-10-23)
764 reads
This trigger will work even if you don't have the primary key on any table. Mechanism to configure the primary key in config table has been provided. This can be very helpful to solve the system audit requirements without much efforts.
Disclaimer : Audit Log trigger has performance overhead. It’s meant for table which is not frequently updated, deleted or inserted. Please take precaution when creating the trigger on the table having too many columns.
2019-10-15 (first published: 2019-10-10)
3,075 reads
Compare the content of two tables for differences
2019-10-14 (first published: 2018-08-28)
884 reads
Fix orphaned users on a restored db
2019-10-07 (first published: 2010-11-02)
3,472 reads
This script is a small extension to this excellent article
http://www.sqlservercentral.com/articles/calendar/145206/
2019-10-04 (first published: 2017-02-21)
1,405 reads
Calculates total length of services for a employee. Calculates( addition or subtraction) two internships in form of yy.mm.dd
2019-10-04 (first published: 2016-10-03)
495 reads