Product Documentation

c-treeACE V11.0 Update Guide

Previous Topic

Next Topic

Preparing to Write a .NET SP, UDF, or Trigger

To write a .NET stored procedure (SP), user-defined function (UDF), or trigger, a new project must be created using one of the supplied templates (see Visual Studio .NET Development). The steps below will create a C# stored procedure project.

Tutorials, which follow the format of the standard FairCom tutorials, are provided in drivers\<Your-API-Folder>\tutorials\.

Note: The extension for Visual Studio must be installed before you can perform the procedures in this section. See Visual Studio .NET Development.

  1. Open Visual Studio.
  2. Create a new project and, from the templates, select Visual C# > c-tree > Stored Procedure, Trigger and UDF.

    New Project

  3. Set the project name and location and click OK.
  4. From the resulting dialog, pick the Data Source (pre-configured in Visual Studio) or Custom and provide the necessary server connection information (the server does not need to be running).

A new Solution and a new project will be created and opened. In Solution Explorer, you should see one folder for each type of project: Stored Procedures, Triggers, and UDFs.

In This Section

Writing a New SP, UDF, or Trigger

Deploying the SP, UDF, or Trigger

Testing the SP, UDF, or Trigger

Debugging the SP, UDF, or Trigger

Altering the SP, UDF, or Trigger

Writing the Code

Returning a Result Set from a Stored Procedure

Returning a UDF Result

Accessing Old and New Rows in Triggers

TOCIndex