Guides you through the process of setting up the provided SQLCLRTutorialSPCall Visual Studio solution, enabling it to call
a SQL CLR stored procedure from an SPD file. The instructions include setting SPCall project properties, building the solution,
and publishing the stored procedures.
Copy the SQLCLRTutorialSPCall solution
- Using Windows File Explorer or at a command prompt, create a subdirectory named
SPDDemo under your
c:\tutorials\HCOSS project parent directory.
- Copy all files and subdirectories in the
%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\SQL\hcoss\JCLCallingSP\SPDDemo directory, to the
c:\tutorials\HCOSS\SPDDemo directory.
Open the SQLCLRTutorialSPCall solution
- In
Enterprise Developer, click
File > Open > Project/Solution.
- Browse to the
c:\tutorials\HCOSS\SPDDemo directory.
- Double-click
SQLCLRTutorialSPCall.sln.
Set Project Properties
- In the
Solution Explorer, right-click the
SPCall project; then select
Properties from the context menu.
- On the
Debug tab (located on the left sidebar), using the drop-down list, set
Launch to
JCL.
- In the
Solution Explorer, double-click the
Properties entry under the
SQLCLRTutorial.Publish project.
- On the
Project Settings tab (located on the left sidebar), using the drop-down list, set
Target platform to your version of SQL Server.
- Click
Save All
.
Build the Solution
- In the
Solution Explorer, right-click the solution; then select
Build Solution from the context menu.
Publish SQL CLR Stored Procedures
- In the
Solution Explorer, right-click the
SQLCLRTutorial.Publish project; then select
Publish from the context menu.
- On the
Publish Database dialog box, click
Edit.
- In the
Server name field, type
. (dot) to represent your local server.
- In the
Select or enter database name field, select
SQLCLR_Test from the drop-down list; then click
OK.
- On the
Publish Database dialog box, click
Publish.
When the publishing process is complete, the
Data Tools Operations window shows a status of "Publish Completed Successfully."