In SQL Server 2005, is there a concept of a one-time-use, or local function declared inside of a SQL script or Stored Procedure? I\'d like to abstract away some complexity i
You can call CREATE Function near the beginning of your script and DROP Function near the end.
CREATE Function
DROP Function