About 551,000 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, …

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

    Oct 19, 2016 · How to execute function in SQL Server 2008. 0. Function is not working in table variable. 2.

  3. sql server - SQL User Defined Function Within Select - Stack …

    Mar 18, 2015 · If it's a table-value function (returns a table set) you simply join it as a Table. this function generates one column table with all the values from passed comma-separated list. …

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

    SET @outerSql = 'CREATE FUNCTION [dbo].[fn_GeneratedFunction] ( @Param varchar(10)) RETURNS TABLE AS RETURN ' + @innerSql; EXEC(@outerSql) This is just pseudocode but …

  5. sql - How to call User-defined function in SELECT statement with …

    Feb 7, 2018 · For example (if the scema is dbo), you can call the function with dbo.GetIptoCountry(): select *, dbo.GetIptoCountry(IP_address) as country from tblInfo …

  6. sql server - Execute WITH statement inside a function - Stack …

    Oct 31, 2012 · If I try to execute this, it gives me this error: Msg 156, Level 15, State 1, Procedure FN_INDICE_SPLIT, Line 4 Incorrect syntax near the keyword 'RETURN'. I've tried to do this in …

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

    Mar 10, 2022 · Here's a simple table valued function; I'm taking a number(@N) and adding 1 to it via Dynamic SQL. The correct syntax would be: CREATE FUNCTION dbo.fnPlusOne(@N …

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

    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

  9. Calling SQL Defined function in C# - Stack Overflow

    You can't just call the function name, you will need to write an inline SQL statement which makes use of the UDF: SqlCommand Totalf = new SqlCommand("SELECT dbo.Tcupom(@code)", …

  10. SQL Server execute (sp_executesql ) command in SQL function

    Sep 1, 2016 · You can't execute stored procedures inside a function. In this case you are trying to use the procedure sp_executesql inside the function and that is causing this issue. If you …

Refresh