2016-03-14
90 reads
2016-03-14
90 reads
The age old question of where should business logic be stored
2015-10-16
290 reads
I had an update statement that took 3 minutes to run after this code change it took 6 seconds.
2015-03-27 (first published: 2014-05-08)
32,423 reads
2015-01-26
12,032 reads
I inherited a database that was getting large and not performing well. After adding primary keys life got better.
2014-06-30
14,542 reads
Some people set their default database to the database they use most often. This can cause issues when a restore fails.
2013-11-14
7,482 reads
Ben Kubicek wrote a recursive function that solves simple math expressions in a select statement. Read about this creative use of T-SQL.
2011-11-21
5,870 reads
Recently Ben Kubicek created a script that would allow him to copy his production db to a test instance and correct the production specific SQL code in stored procedures and views.
2010-02-03
7,426 reads
By Steve Jones
This is my last week of the year working (I guess I come back...
Want to seriously boost your data skills? Mastering advanced SQL is the key, whether...
By Steve Jones
This is my last week of the year working (I guess I come back...
Comments posted to this topic are about the item Function Defaults
Comments posted to this topic are about the item Big Data or Small Data
Comments posted to this topic are about the item Level 4 of the Stairway...
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