Automating CRUD procedures generation using T-SQL (enhanced).
In this post I will describe the helper procedure that based on metadata generates numerous database objects around views and...
2019-01-03
405 reads
In this post I will describe the helper procedure that based on metadata generates numerous database objects around views and...
2019-01-03
405 reads
In this article I continue to explore the ways to secure the data via contextual views and describe the technique...
2018-10-18
548 reads
In this post we will discuss how to fetch data from a large dataset for web applications using pagination technique....
2018-10-17
421 reads
This post helps in deciding between choosing foreign key and check constraints in case we need to constraint the data...
2018-10-16
461 reads
We are often required to pass the data between different database procedures and functions. In this post I will review...
2018-09-06
339 reads
In this post I will show how in some cases we can split a long procedure to a small and...
2018-05-23
1,794 reads
I try to avoid dynamic SQL as much as possible and consider it as a necessary evil. However, in some...
2018-05-21 (first published: 2018-05-09)
2,532 reads
In this post you will find two small functions that convert binary value to a decimal one and vice versa.
2018-05-19
441 reads
Deployment process equally responsible for deploying both database objects as well as an initial state of the database/applications. In this...
2018-05-10
638 reads
Designing implementation of interface is as critical as designing interface itself. In this post we will discuss some advice on...
2018-04-14
1,317 reads
By Steve Jones
I use ConEmu for my terminal interface. I’m still on Windows 10 at home,...
Creating a Fabric workspace takes about 30 seconds. Restructuring workspaces after people have built...
By Steve Jones
It’s a small change, but a handy one. Flyway Desktop (FWD) now includes the...
Comments posted to this topic are about the item Adding new column with DEFAULT...
Comments posted to this topic are about the item Advanced Deployment Scenarios: Stairway to...
Comments posted to this topic are about the item You Need a DBA Pipeline
Which number did the two COUNT(*) return:
DROP TABLE IF EXISTS #tmp CREATE TABLE #tmp (id INT NOT NULL) INSERT INTO #tmp (id) SELECT gs.value FROM GENERATE_SERIES(1, 5) AS gs ALTER TABLE #tmp ADD my_value INT NOT NULL CONSTRAINT df_tmp_my_value DEFAULT 1 SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1 ALTER TABLE #tmp DROP CONSTRAINT df_tmp_my_value ALTER TABLE #tmp ADD CONSTRAINT df_tmp_my_value DEFAULT 2 FOR my_value SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1See possible answers