PowerShell 101 for the DBA: Querying Your Servers with PowerShell
In my last blog post, I discussed how to get PowerShell and SQLPS up and running on your machine(s). And...
2009-09-22
1,919 reads
In my last blog post, I discussed how to get PowerShell and SQLPS up and running on your machine(s). And...
2009-09-22
1,919 reads
Many DBAs have heard about the new scripting technology from Microsoft, but have yet to really dive right in. You...
2009-09-15
2,514 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