Why Scalar Functions Can Be Costly
Scalar user defined functions can be costly in more ways than you know. Watch Mickey Stuewe show the hidden costs of using them incorrectly.
2017-06-02 (first published: 2016-01-04)
14,065 reads
Scalar user defined functions can be costly in more ways than you know. Watch Mickey Stuewe show the hidden costs of using them incorrectly.
2017-06-02 (first published: 2016-01-04)
14,065 reads
One of the best ways in which you can build better applications is by learning to write better T-SQL. Mickey Stuewe begins a new series showing how you might start to think about writing queries.
2016-09-02 (first published: 2015-06-02)
15,868 reads
One of the best ways in which you can build better applications is by learning to write better T-SQL. Mickey Stuewe begins a new series showing how you might start to think about writing queries.
2016-09-02 (first published: 2015-06-02)
16,251 reads
A second part to the series by Mickey Stuewe on writing better T-SQL looks at some of the issues of using views in a complex query.
2016-09-02 (first published: 2015-06-23)
10,829 reads
A second part to the series by Mickey Stuewe on writing better T-SQL looks at some of the issues of using views in a complex query.
2016-09-02 (first published: 2015-06-23)
10,877 reads
By Steve Jones
This is my last week of the year working (I guess I come back...
By Steve Jones
This is my last week of the year working (I guess I come back...
I recently read the book Agile Data Warehouse Design – Collaborative Dimensional Modeling, from...
I have an ADF pipeline that copies Files from source to destination. Both Source...
Comments posted to this topic are about the item Function Defaults
I have created this function in SQL Server 2022:
CREATE FUNCTION dbo.AddInt (@one INT, @two INT = 1) RETURNS INT AS BEGIN RETURN @one + @two ENDHow can I call this and invoke the default value for @two? See possible answers