Cisco Cisco Process Orchestrator 3.1 Betriebsanweisung

Seite von 786
 
13-75
Cisco Process Orchestrator 3.1 User Guide
 
Appendix 13      Using Adapters
  Database Adapter—Microsoft SQL Server
Defining an SQL Server Database Target
Use the SQL Server Database target to specify the connection information for a SQL server target.
Step 1
Choose Definitions > Targets, right-click and choose New > SQL Server Database.
Step 2
Click the General tab and enter the appropriate information.
Step 3
Click the Connection tab and enter the required information, including:
  •
Server—Host name or IP address of the database server
  •
Default runtime user—The default runtime user account that contains the credentials to connect to 
the target. 
  •
Connection string—The information needed to establish a connection to the database. To connect to 
a non-default instance, use the (server\instance) format. If your SQL server has a non-default port 
number, the correct format is to enter the server\instance, then a comma, then the port number. For 
example:
servername,portnumber
Step 4
Click the Permission tab to define the type of SQL commands that can run on the target.
Step 5
Click OK to close the dialog box and complete the procedure.
Automating SQL Queries in the Microsoft SQL Server Database
Executing a Microsoft SQL Server SQL Script
Use this activity to execute SQL script against a Microsoft SQL Server database.
Step 1
In the Process Editor Toolbox, choose the [Microsoft SQL Server Database Activity] property page, 
then click the Execute SQL Server SQL Script tab.
Step 2
Specify the information that describes the script you want to run, including the script text for the selected 
database. For example:
  •
To truncate a sample table Employees:
TRUNCATE TABLE Employees
  •
To execute a stored procedure:
exec master..xp_logininfo
.