
Click on add new data source and select type as Microsoft SQL server.
Keep your SQL Server urls and credentials ready to configure new data source as shown below.
CREATE PROC What_DB_is_this5
AS
SELECT DB_NAME() AS ThisDB;
go
CREATE PROC What_DB_is_that @ID INT
AS
SELECT DB_NAME(@ID) AS ThatDB;
go
create procedure PROC_PRINT_HW
as
select dbo.helloworldfunction()
go
CREATE FUNCTION dbo.helloworldfunction()
RETURNS varchar(20)
AS
BEGIN
RETURN 'Hello world'
END
go
${header.Action} = 'QUERY'
SELECT * FROM <SCHEMA_NAME>.<TABLENAME>;
${header.Action} = 'INSERT'
INSERT INTO <SCHEMA_NAME>.<TABLE_NAME> (
ID,
COMPANY_NAME,
COMPANY_CODE,
LOCATION,
ADDRESS_1,
ADDRESS_2,
STATE,
COUNTRY,
PINCODE,
EMAIL,
WEBSITE,
PHONE_1,
PHONE_2,
NMBR_OF_EMPLOYEES,
FACILITIES,
PROCESSED
)
VALUES
(
'COMPANY 1S',
'C101S',
'LOCATION 1S',
'ADDRESS 1S',
'ADDRESS 2S',
'STATE 1S',
'COUNTRY 1S',
560085,
'c1S.email@email',
'company1S.com',
12345,
12342,
25,
'FACILITIES 1S',
'NO'
),
(
'COMPANY 2S',
'C102S',
'LOCATION 2S',
'ADDRESS 2S',
'ADDRESS 2S',
'STATE 2S',
'COUNTRY 3S',
560085,
'c2S.email@email',
'company2S.com',
12345,
12342,
25,
'FACILITIES 2S',
'NO'
);
${header.Action} = 'STOREDPROCEDURE'
<root>
<StatementName>
<storedProcedureName action="EXECUTE">
<table><STORED_PROCEDURE_NAME></table>
</storedProcedureName >
</StatementName>
</root>
<root>
<StatementName>
<storedProcedureName action="EXECUTE">
<table><STORED_PROCEDURE_NAME></table>
<param1 type="INTEGER">1</param1>
</storedProcedureName >
</StatementName>
</root>
{
"info": {
"_postman_id": "fe787994-b71a-4020-a8f8-25ddfcff5d55",
"name": "MS_SQL_ONPREM",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "SELECT DATA",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "PASSWORD",
"type": "string"
},
{
"key": "username",
"value": "USER",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "GET",
"header": [
{
"key": "Action",
"value": "QUERY",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "Select * from <SCHEMA_NAME>.<TABLENAME>;"
},
"url": {
"raw": "https://<RUNTIME_URL>/http/UpdateMSSQL",
"protocol": "https",
"host": [
"<RUNTIME_URL>"
],
"path": [
"http",
"UpdateMSSQL"
]
}
},
"response": []
},
{
"name": "STORED PROCEDURE",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "PASSWORD",
"type": "string"
},
{
"key": "username",
"value": "USERNAME",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "GET",
"header": [
{
"key": "Action",
"value": "STOREDPROCEDURE",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "<root>\r\n\t<StatementName>\r\n\t\t<storedProcedureName action=\"EXECUTE\">\r\n\t\t\t<table>What_DB_is_this5</table>\t\t\r\n\t\t</storedProcedureName >\r\n\t</StatementName>\r\n</root>"
},
"url": {
"raw": "https://<RUNTIME_URL>/http/UpdateMSSQL",
"protocol": "https",
"host": [
"<RUNTIME_URL>"
],
"path": [
"http",
"UpdateMSSQL"
]
}
},
"response": []
},
{
"name": "STORED PROCEDURE PARAM",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "PASSWORD",
"type": "string"
},
{
"key": "username",
"value": "USER",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "GET",
"header": [
{
"key": "Action",
"value": "STOREDPROCEDURE",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "<root>\r\n\t<StatementName>\r\n\t\t<storedProcedureName action=\"EXECUTE\">\r\n\t\t\t<table>What_DB_is_that</table>\r\n\t\t\t<param1 type=\"INTEGER\">1</param1>\r\n\t\t</storedProcedureName >\r\n\t</StatementName>\r\n</root>"
},
"url": {
"raw": "https://<RUNTIME_URL>/http/UpdateMSSQL",
"protocol": "https",
"host": [
"<RUNTIME_URL>"
],
"path": [
"http",
"UpdateMSSQL"
]
}
},
"response": []
},
{
"name": "INSERT DATA",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "PASSWORD",
"type": "string"
},
{
"key": "username",
"value": "USER",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "GET",
"header": [
{
"key": "Action",
"value": "INSERT",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "INSERT INTO <SCHEMA_NAME>.<TABLENAME> (\r\n ID,\r\n COMPANY_NAME,\r\n COMPANY_CODE,\r\n LOCATION,\r\n ADDRESS_1,\r\n ADDRESS_2,\r\n STATE,\r\n COUNTRY,\r\n PINCODE,\r\n EMAIL,\r\n WEBSITE,\r\n PHONE_1,\r\n PHONE_2,\r\n NMBR_OF_EMPLOYEES,\r\n FACILITIES,\r\n PROCESSED\r\n)\r\nVALUES\r\n (\r\n 'COMPANY 1S',\r\n 'C101S',\r\n 'LOCATION 1S',\r\n 'ADDRESS 1S',\r\n\t\t'ADDRESS 2S',\r\n\t\t'STATE 1S',\r\n\t\t'COUNTRY 1S',\r\n\t\t560085,\r\n\t\t'c1S.email@email',\r\n\t\t'company1S.com',\r\n\t\t12345,\r\n\t\t12342,\r\n\t\t25,\r\n\t\t'FACILITIES 1S',\r\n\t\t'NO'\t\r\n\t\t\r\n ),\r\n (\r\n 'COMPANY 2S',\r\n 'C102S',\r\n 'LOCATION 2S',\r\n 'ADDRESS 2S',\r\n\t\t'ADDRESS 2S',\r\n\t\t'STATE 2S',\r\n\t\t'COUNTRY 3S',\r\n\t\t560085,\r\n\t\t'c2S.email@email',\r\n\t\t'company2S.com',\r\n\t\t12345,\r\n\t\t12342,\r\n\t\t25,\r\n\t\t'FACILITIES 2S',\r\n\t\t'NO'\r\n ),\r\n (\r\n 'COMPANY 3S',\r\n 'C103S',\r\n 'LOCATION 3S',\r\n 'ADDRESS 3S',\r\n\t\t'ADDRESS 3S',\r\n\t\t'STATE 3S',\r\n\t\t'COUNTRY 3S',\r\n\t\t560085,\r\n\t\t'c3S.email@email',\r\n\t\t'company3S.com',\r\n\t\t12345,\r\n\t\t12342,\r\n\t\t25,\r\n\t\t'FACILITIES 3S',\r\n\t\t'NO'\r\n );\r\n\t"
},
"url": {
"raw": "https://<RUNTIME_URL>/http/UpdateMSSQL",
"protocol": "https",
"host": [
"<RUNTIME_URL>"
],
"path": [
"http",
"UpdateMSSQL"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
11 | |
10 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 |