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

PPTX
Mule with stored procedure
PDF
Asp.NETZERO - A Workshop Presentation by Citytech Software
PDF
CLOUD COMPUTING BY SIVASANKARI
PPTX
The cloud promises
PPTX
Key Management and Distribution
PPTX
Deploying Cloud Native Red Team Infrastructure with Kubernetes, Istio and Envoy
PPTX
Data center proposal
Mule with stored procedure
Asp.NETZERO - A Workshop Presentation by Citytech Software
CLOUD COMPUTING BY SIVASANKARI
The cloud promises
Key Management and Distribution
Deploying Cloud Native Red Team Infrastructure with Kubernetes, Istio and Envoy
Data center proposal

Viewers also liked (13)

PDF
Anypoint Batch Processing and Polling Scope With Mulesoft
PDF
What are Anypoint Validations With Mulesoft
PDF
Introducing Mule Application and API
PDF
Anypoint Salesforce Connector With Mulesoft
PDF
Splitter and Collection Aggregator With Mulesoft
PDF
Encrypt The Mule Message With Anypoint JCE and XML Encrypter
PDF
Anypoint Filters in Mule
PDF
CloudHub Connector With Mulesoft
PDF
Exception strategies in MuleSoft Anypoint Studio
PDF
Debugging with MuleSoft Anypoint Studio
PDF
Introduction To Anypoint CloudHub With Mulesoft
PDF
Message Chunk Splitter And Aggregator With MuleSoft
PDF
Gzip Compress and Uncompress Transformer With Mulesoft
Anypoint Batch Processing and Polling Scope With Mulesoft
What are Anypoint Validations With Mulesoft
Introducing Mule Application and API
Anypoint Salesforce Connector With Mulesoft
Splitter and Collection Aggregator With Mulesoft
Encrypt The Mule Message With Anypoint JCE and XML Encrypter
Anypoint Filters in Mule
CloudHub Connector With Mulesoft
Exception strategies in MuleSoft Anypoint Studio
Debugging with MuleSoft Anypoint Studio
Introduction To Anypoint CloudHub With Mulesoft
Message Chunk Splitter And Aggregator With MuleSoft
Gzip Compress and Uncompress Transformer With Mulesoft
Ad

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

PPTX
Stored procedure in Mule
PPTX
Mule with stored procedure
PPTX
Mule stored procedure
PPTX
Mule with stored procedure
PPTX
Stored procedure in mule
PPTX
Mule with stored procedure
ODP
Running ms sql stored procedures in mule
ODP
Running ms sql stored procedures in mule
PPTX
Mule esb – connecting to ms sql db
PPTX
Database integrate with mule
PPTX
Mule new jdbc component
PPTX
Stored procedure in mule
Stored procedure in Mule
Mule with stored procedure
Mule stored procedure
Mule with stored procedure
Stored procedure in mule
Mule with stored procedure
Running ms sql stored procedures in mule
Running ms sql stored procedures in mule
Mule esb – connecting to ms sql db
Database integrate with mule
Mule new jdbc component
Stored procedure in mule
Ad

More from Jitendra Bafna (20)

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

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Understanding Forklifts - TECH EHS Solution
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPT
Introduction Database Management System for Course Database
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Nekopoi APK 2025 free lastest update
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
medical staffing services at VALiNTRY
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
history of c programming in notes for students .pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Understanding Forklifts - TECH EHS Solution
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Computer Software and OS of computer science of grade 11.pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
Introduction Database Management System for Course Database
Wondershare Filmora 15 Crack With Activation Key [2025
Operating system designcfffgfgggggggvggggggggg
Odoo Companies in India – Driving Business Transformation.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
wealthsignaloriginal-com-DS-text-... (1).pdf
Nekopoi APK 2025 free lastest update
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
medical staffing services at VALiNTRY
How to Migrate SBCGlobal Email to Yahoo Easily
history of c programming in notes for students .pptx

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/