Spec-Zone .ru
спецификации, руководства, описания, API
|
To create a new User Defined Function (UDF), right-click the UDFs node under the connection node in Server Explorer. From the node's context menu, choose the command. This command opens the UDF Editor.
To modify an existing UDF, double-click the node of the UDF to modify, or right-click this node and choose the
command from the context menu. Either of these commands opens the UDF Editor.The UDF editor enables you to set the following properties:
Name
So-name (DLL name)
Return type
Is Aggregate
There are text fields for both names, a combo box for the return type, and a check box to indicate if the UDF is aggregate. All these options are also accessible using the Properties window.
The property Server
in the Properties window is read-only.
To save changes you have made, use either Control+S. Before changes are saved, you will be asked to confirm the execution of the corresponding SQL query in a confirmation dialog.
or buttons of the Visual Studio main toolbar, or pressTo observe the runtime behavior of a stored routine and debug any problems, use the Stored Procedure Debugger (available in Connector/Net 6.6 and higher). See Section 22.2.3.8, "Debugging Stored Procedures and Functions" for details.