About 50 results
Open links in new tab
  1. How to execute function in SQL Server 2008 - Stack Overflow

    Jan 26, 2014 · how to call scalar function in sql server 2008 Each time, I try entering the Function using the syntax shown here in SQL Server Management Studio, or SSMS, to see the results, and each …

  2. sql - How to execute Table valued function - Stack Overflow

    sql sql-server sql-server-2008 t-sql edited Oct 19, 2016 at 14:24 cuongle 75.5k 30 155 213

  3. SQL User Defined Function Within Select - Stack Overflow

    I have a user defined function in SQL called getBuisnessDays it takes @startdate and @enddate and returns the number of business days between the two dates. How can I call that function within my s...

  4. t sql - Exec in a function SQL - Stack Overflow

    Mar 10, 2022 · You cannot use DSQL in a function, you need to use a stored procedure. Here's a simple table valued function; I'm taking a number (@N) and adding 1 to it via Dynamic SQL.

  5. sql - Execute Stored Procedure from a Function - Stack Overflow

    But if you are using it in a SET @Variable = function(); statement or SELECT * FROM function(); query, then it should be ok. An example of using a .NET / C# SQLCLR user-defined function to execute a …

  6. How to execute function in SQL Server - Stack Overflow

    Dec 29, 2021 · How to execute function in SQL Server [closed] Asked 4 years, 3 months ago Modified 4 years, 3 months ago Viewed 4k times

  7. sql server - Execute WITH statement inside a function - Stack Overflow

    Oct 31, 2012 · You don't need the semicolon before the WITH in a TABLE-VALUED FUNCTION. Especially considering that you cannot even have multi-statements in a TVF, there's no reason for a …

  8. SQL Server: How to call a user-defined function (UDF) on linked server ...

    Select * from Openquery(Linked_Server,'select northwind.dbo.square_ value(10)') If the user-defined function takes variable or scalar parameters, you can use the sp_executesql stored procedure to …

  9. sql server - How do I use a SQL function inside my SQL query - Stack ...

    I have a SQL function called MAGIC that returns the magical value of a number. Suppose further that I want to write a SQL query that will return a list of numbers from a SQL table along with their magical …

  10. sql server - How do you give a ReadOnly User the ability to call a ...

    Nov 19, 2020 · The EXECUTE permission was denied on the object 'CatComments', database 'HBDevSIMCOA', schema 'HBP_Plant'*. How do I give them permission to call the function without …