Mark Andrews
  • Home
  • Creative
  • Contact

SQL Server

A collection of 2 posts
SQL Server

diff two SQL Server tables

From Stack Overflow SELECT t1.id FROM table1 t1 INNER JOIN table2 t2 ON t1.id = t2.id WHERE ISNULL(t1.field1,'') <> ISNULL(t2.field1,'') OR ISNULL(t1.field2,'') <> ISNULL(t2.field2,'') ...
05 Mar 2019
SQL Server

SQL Server convert IDENTITY column to non-IDENTITY

I made a fundamental mistake in the database architecture, and learnt that identity columns are great for programmatically generated database rows, however, for prescriptive data (such as a list of categories that does not change via the UI) then the id column is best managed manually to ensure consistency between
08 Mar 2018 1 min read
Page 1 of 1
Mark Andrews © 2025
  • Privacy
Powered by Ghost