Table-valued Function Designer is a visual tool for creating, editing, and generating scripts for table-valued functions.
A table-valued function is a user-defined function that returns a table. You can use table-valued functions in queries like regular tables and pass parameters to filter or shape the returned data.
You can open Table-valued Function Designer in one of these ways:
The Designer opens, displaying:
CREATE FUNCTION template.
You can also open Table-valued Function Designer for an existing table-valued function:
CREATE FUNCTION definition opens, which you can use to change the code or rename the function.You can use SQL Editor to create and edit the table-valued function script.
CREATE FUNCTION dbo.function1 ()
RETURNS TABLE (
)
GO
The default function name is function1. If a function with this name already exists, dbForge Studio assigns the next available name, such as function2, function3, and so on. To use a different name, enter it in the template.
SQL Editor supports IntelliSense-style suggestions, quick object information, and parameter information, which you can use for writing and editing scripts.
You can use the bottom panel to:
You can click the arrow next to Script Changes and select:
