Guides you through the process of setting up the provided SQLCLRTutorialSPCall Visual Studio solution for use with a data
name, including 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
MultiProjDataName under your
c:\tutorials\SQLCLR project parent directory.
- Copy all files and subdirectories in the
%PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\SQL\OpenESQL\JCLCallingSP\MultiProjDataName directory, to the
c:\tutorials\SQLCLR\MultiProjDataName directory.
Open the SQLCLRTutorialSPCall solution
- From the Visual Studio main menu, click
File > Open > Project/Solution.
- Browse to the
c:\tutorials\SQLCLR\MultiProjDataName 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.
- Click
Save
.
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
Properties from the context menu.
- On the
Project Settings tab (located on the left sidebar), use the
Target platform drop-down list to select the version of SQL Server used on your deployment machine. In this case, this is the version of
SQL Server installed on your local machine.
- Click
Save
.
- 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."