You can use a stored procedure as a record
To use a stored procedure as a record
Add a graphics page using the Citect Graphics Builder and
save it as Recipe.
Insert a Database Exchange control on the page.
Double-click the Database Exchange object to display the
Properties dialog box.
Click the Connection tab.
Click Build to display the Data Link Properties
Select Microsoft OLE DB Provider for SQL Server
and then click Next. Be aware
that you can also use Microsoft OLE DB Provider for ODBC
Drivers if an SQL DSN has been configured in ODBC
Click the Connection tab and enter an SQL server
name and user login, and then select Northwind as the database.
Click Test Connection to verify that the
connection works and then click OK.
On the Database Exchange Properties form, select
Stored Procedure as the command type and then select
Employee Sales by Country;1 from the
list as shown below. The parameters box prompts you to enter the
number of parameters that the selected stored procedure has.
In the parameters box, type ('1996/07/01',
The resulting data looks like this:
Each parameter must be enclosed by ‘
‘ and separated by a comma.
All parameters must be enclosed by ().
As a parameter is entered as a string, the ActiveX
control tries to convert it to its original data type defined in
the stored procedure. So for datetime
type parameters, the parameter entry must follow the format
Version 3.1.1 or later of Database Exchange control is
required to support stored procedures having spaces in their