Do you know your getdate()?
This article takes a closer look at SQL Server getdate() and sysdatetime() functions.
2012-02-03 (first published: 2010-05-12)
27,801 reads
This article takes a closer look at SQL Server getdate() and sysdatetime() functions.
2012-02-03 (first published: 2010-05-12)
27,801 reads
This article describes a method of gathering and analyzing performance data using SQL Trace.
2009-12-01
5,413 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...
Want to seriously boost your data skills? Mastering advanced SQL is the key, whether...
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
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