SlideShare a Scribd company logo
2
Most read
5
Most read
7
Most read
ConnectingTo MS SQL Server With
Mulesoft (Stored Procedure To Insert
data)
JITENDRA BAFNA
Connecting MS SQL Server To Call Stored Procedure
To Insert Data Into Table
Mulesoft provides wide range of connectors which is very handy while integrating solution. In
many scenarios, we required to connect to database for querying, inserting and updating the
table. Mulesoft provides a database connector which allows JDBC connectivity with
relational database to execute various SQL operations like Select, Insert, Update, Delete and
Stored Procedures.
Mulesoft provide database connector to connects various JDBC databases like MS SQL,
Oracle, Derby, MYSQL etc.
Prerequisite To connect MS SQL Server With Mulesoft
• Download and Install sqljdbc4.jar file. It will require to connect MS SQL database.
• Ensure that TCP/IP port is enabled in SQL configuration (default port is 1433).
• Add sqljdbc4.jar into your build path of Mule application. Right click on your application
then Build Path < Configure Build Path < Libraries < Add External Jars.
Connecting MS SQL Server To Call Stored Procedure
To Insert Data Into Table
Connecting MS SQL Server To Call Stored Procedure
To Insert Data Into Table
Place HTTP Listener components at the message source in Mule flow and
configure it.This time we will use POST method.
Place the database component at message processor and configure Generic
DatabaseConfiguration in same way as we have done above and press OK.
Make sure you are selecting the Operation. In this case we will use Store
Procedure operation.
Connecting MS SQL Server To Call Stored Procedure
To Insert Data Into Table
Now, provide Database Url and Drive Class Name. Press OK.
URL: jdbc:sqlserver://${mssql.server}:${mssql.port};databaseName=${mssql.database};user=${mssql.user};password=${mssql.password}
DriverClass Name: com.microsoft.sqlserver.jdbc.SQLServerDriver
Connecting MS SQL Server To Call Stored Procedure
To Insert Data Into Table
Provide the ParameterizedQuery depending on your requirements.
Connecting MS SQL Server To Call Stored Procedure To
Insert Data Into Table
Add Parameter and map fields with input json message.
Connecting MS SQL Server To Call Stored Procedure
To Insert Data Into Table
Add Parameter and map fields with input json message.
{
"Country":"India",
"Year":"2005",
"TotalPopulation":"1000000"
}
Testing Application
We will use Postman to test the application and url will used to invoke Mule
Flow http://localhost:8081/
THANK YOU.

More Related Content

Viewers also liked (7)

PDF
Anypoint Filters in Mule
Jitendra Bafna
 
PDF
CloudHub Connector With Mulesoft
Jitendra Bafna
 
PDF
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
PDF
Debugging with MuleSoft Anypoint Studio
Jitendra Bafna
 
PDF
Introduction To Anypoint CloudHub With Mulesoft
Jitendra Bafna
 
PDF
Message Chunk Splitter And Aggregator With MuleSoft
Jitendra Bafna
 
PDF
Gzip Compress and Uncompress Transformer With Mulesoft
Jitendra Bafna
 
Anypoint Filters in Mule
Jitendra Bafna
 
CloudHub Connector With Mulesoft
Jitendra Bafna
 
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
Debugging with MuleSoft Anypoint Studio
Jitendra Bafna
 
Introduction To Anypoint CloudHub With Mulesoft
Jitendra Bafna
 
Message Chunk Splitter And Aggregator With MuleSoft
Jitendra Bafna
 
Gzip Compress and Uncompress Transformer With Mulesoft
Jitendra Bafna
 

Similar to Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data) (20)

PPTX
Mule jdbc
Rajarajan Sadhasivam
 
PPTX
introductionofssis-130418034853-phpapp01.pptx
YashaswiniSrinivasan1
 
PDF
Data Integration through Data Virtualization (SQL Server Konferenz 2019)
Cathrine Wilhelmsen
 
PPTX
Stretch Database
SolidQ
 
PPTX
Data virtualization using polybase
Antonios Chatzipavlis
 
PPTX
Web Technologies - forms and actions
Aren Zomorodian
 
PPT
Mule database connector
D.Rajesh Kumar
 
PDF
Stretch db sql server 2016 (sn0028)
Antonios Chatzipavlis
 
PPTX
jsp MySQL database connectivity
baabtra.com - No. 1 supplier of quality freshers
 
ODP
Creating Flexible Data Services For Enterprise Soa With Wso2 Data Services
sumedha.r
 
PPTX
JDBC ppt
Rohit Jain
 
PPT
MuleSoft Database Connector
krishna2162
 
PPTX
Practical OData
Vagif Abilov
 
PPTX
Database synchronization prashant parit
PrashantP23
 
PPTX
SQL Server 2016 - Stretch DB
Shy Engelberg
 
PPT
Mule database-connectors
princeirfancivil
 
PPT
Mule database-connectors
Phaniu
 
PPT
Mule database-connectors
D.Rajesh Kumar
 
PPT
Mule database-connectors
irfan1008
 
PPT
JDBC.ppt
ChagantiSahith
 
introductionofssis-130418034853-phpapp01.pptx
YashaswiniSrinivasan1
 
Data Integration through Data Virtualization (SQL Server Konferenz 2019)
Cathrine Wilhelmsen
 
Stretch Database
SolidQ
 
Data virtualization using polybase
Antonios Chatzipavlis
 
Web Technologies - forms and actions
Aren Zomorodian
 
Mule database connector
D.Rajesh Kumar
 
Stretch db sql server 2016 (sn0028)
Antonios Chatzipavlis
 
jsp MySQL database connectivity
baabtra.com - No. 1 supplier of quality freshers
 
Creating Flexible Data Services For Enterprise Soa With Wso2 Data Services
sumedha.r
 
JDBC ppt
Rohit Jain
 
MuleSoft Database Connector
krishna2162
 
Practical OData
Vagif Abilov
 
Database synchronization prashant parit
PrashantP23
 
SQL Server 2016 - Stretch DB
Shy Engelberg
 
Mule database-connectors
princeirfancivil
 
Mule database-connectors
Phaniu
 
Mule database-connectors
D.Rajesh Kumar
 
Mule database-connectors
irfan1008
 
JDBC.ppt
ChagantiSahith
 
Ad

More from Jitendra Bafna (20)

PDF
MuleSoft Surat Meetup#55 - Unleash the power of Anypoint MQ
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#54 - MuleSoft Automation
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#53 - MuleSoft for Clinical Trial Modernization
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#52 - Flex Gateway (Port Based Routing V/S Path Based Ro...
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#51 - API Monitoring - Through a New Lens
Jitendra Bafna
 
PDF
Engineering Student MuleSoft Meetup#7 - Leveraging MuleSoft Service in Salesf...
Jitendra Bafna
 
PDF
MuleSoft Nashik Meetup#7 - Building FHIR applications in MongoDB using MuleSoft
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#50 - Ask the MuleSoft Ambassadors + CloudHub 2.0 Overvi...
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#49 - Robotic Process Automation - Why, Where, When and ...
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#48 - Anypoint API Governance (RAML, OAS and Async API) ...
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#47 - Error Handling With MuleSoft
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoft
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#45 - Anypoint Flex Gateway as a Kubernetes Ingress Cont...
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#44 - Anypoint Flex Gateway Custom Policies With Rust
Jitendra Bafna
 
PDF
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
Jitendra Bafna
 
PDF
MuleSoft Nashik Meetup#5 - JSON Logger and Externalize Logs
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...
Jitendra Bafna
 
PDF
Engineering Student MuleSoft Meetup#5 - Error Handling With MuleSoft
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
Jitendra Bafna
 
PDF
MuleSoft Surat Meetup#41 - Universal API Management, Anypoint Flex Gateway an...
Jitendra Bafna
 
MuleSoft Surat Meetup#55 - Unleash the power of Anypoint MQ
Jitendra Bafna
 
MuleSoft Surat Meetup#54 - MuleSoft Automation
Jitendra Bafna
 
MuleSoft Surat Meetup#53 - MuleSoft for Clinical Trial Modernization
Jitendra Bafna
 
MuleSoft Surat Meetup#52 - Flex Gateway (Port Based Routing V/S Path Based Ro...
Jitendra Bafna
 
MuleSoft Surat Meetup#51 - API Monitoring - Through a New Lens
Jitendra Bafna
 
Engineering Student MuleSoft Meetup#7 - Leveraging MuleSoft Service in Salesf...
Jitendra Bafna
 
MuleSoft Nashik Meetup#7 - Building FHIR applications in MongoDB using MuleSoft
Jitendra Bafna
 
MuleSoft Surat Meetup#50 - Ask the MuleSoft Ambassadors + CloudHub 2.0 Overvi...
Jitendra Bafna
 
MuleSoft Surat Meetup#49 - Robotic Process Automation - Why, Where, When and ...
Jitendra Bafna
 
MuleSoft Surat Meetup#48 - Anypoint API Governance (RAML, OAS and Async API) ...
Jitendra Bafna
 
MuleSoft Surat Meetup#47 - Error Handling With MuleSoft
Jitendra Bafna
 
MuleSoft Surat Meetup#46 - Deep Dive into MUnit With MuleSoft
Jitendra Bafna
 
MuleSoft Surat Meetup#45 - Anypoint Flex Gateway as a Kubernetes Ingress Cont...
Jitendra Bafna
 
MuleSoft Surat Meetup#44 - Anypoint Flex Gateway Custom Policies With Rust
Jitendra Bafna
 
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
Jitendra Bafna
 
MuleSoft Nashik Meetup#5 - JSON Logger and Externalize Logs
Jitendra Bafna
 
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...
Jitendra Bafna
 
Engineering Student MuleSoft Meetup#5 - Error Handling With MuleSoft
Jitendra Bafna
 
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
Jitendra Bafna
 
MuleSoft Surat Meetup#41 - Universal API Management, Anypoint Flex Gateway an...
Jitendra Bafna
 
Ad

Recently uploaded (20)

PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PPTX
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
NSF Converter Simplified: From Complexity to Clarity
Johnsena Crook
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
PDF
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PPTX
Get Started with Maestro: Agent, Robot, and Human in Action – Session 5 of 5
klpathrudu
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
NSF Converter Simplified: From Complexity to Clarity
Johnsena Crook
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
Get Started with Maestro: Agent, Robot, and Human in Action – Session 5 of 5
klpathrudu
 

Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)

  • 1. ConnectingTo MS SQL Server With Mulesoft (Stored Procedure To Insert data) JITENDRA BAFNA
  • 2. Connecting MS SQL Server To Call Stored Procedure To Insert Data Into Table Mulesoft provides wide range of connectors which is very handy while integrating solution. In many scenarios, we required to connect to database for querying, inserting and updating the table. Mulesoft provides a database connector which allows JDBC connectivity with relational database to execute various SQL operations like Select, Insert, Update, Delete and Stored Procedures. Mulesoft provide database connector to connects various JDBC databases like MS SQL, Oracle, Derby, MYSQL etc. Prerequisite To connect MS SQL Server With Mulesoft • Download and Install sqljdbc4.jar file. It will require to connect MS SQL database. • Ensure that TCP/IP port is enabled in SQL configuration (default port is 1433). • Add sqljdbc4.jar into your build path of Mule application. Right click on your application then Build Path < Configure Build Path < Libraries < Add External Jars.
  • 3. Connecting MS SQL Server To Call Stored Procedure To Insert Data Into Table
  • 4. Connecting MS SQL Server To Call Stored Procedure To Insert Data Into Table Place HTTP Listener components at the message source in Mule flow and configure it.This time we will use POST method. Place the database component at message processor and configure Generic DatabaseConfiguration in same way as we have done above and press OK. Make sure you are selecting the Operation. In this case we will use Store Procedure operation.
  • 5. Connecting MS SQL Server To Call Stored Procedure To Insert Data Into Table Now, provide Database Url and Drive Class Name. Press OK. URL: jdbc:sqlserver://${mssql.server}:${mssql.port};databaseName=${mssql.database};user=${mssql.user};password=${mssql.password} DriverClass Name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  • 6. Connecting MS SQL Server To Call Stored Procedure To Insert Data Into Table Provide the ParameterizedQuery depending on your requirements.
  • 7. Connecting MS SQL Server To Call Stored Procedure To Insert Data Into Table Add Parameter and map fields with input json message.
  • 8. Connecting MS SQL Server To Call Stored Procedure To Insert Data Into Table Add Parameter and map fields with input json message. { "Country":"India", "Year":"2005", "TotalPopulation":"1000000" }
  • 9. Testing Application We will use Postman to test the application and url will used to invoke Mule Flow http://localhost:8081/