# mssqlQuery

## Description

Query languages are used to make queries in a database, and Microsoft Structured Query Language (SQL) is used to query, insert, update and modify data.

## Input / Parameters

| No | Name      | Description                                                                                  | Data Type | Required |
| -- | --------- | -------------------------------------------------------------------------------------------- | --------- | -------- |
| 1  | connector | Name of connector and created in the Services and Global Components page.                    | String    | Yes      |
| 2  | query     | A query is a request for data or information from a database table or combination of tables. | String    | Yes      |

## Output

## Callback

## Video

## Example

The user wants to call the mssqlQuery Web Service.

### Step

1. To create MSSQL Connector in Services and define the name, url, port, database, user, password and timeOut.\
   Name: mssql\
   url: mkals4utt4.database.windows.net port: 1433\
   database: emobiq\_demo\_1\
   user: sqladmin\
   password: \*\*\*\*\*\*\*\*\
   timeOut: 5000

   ![](/files/eodTYgWpjeVp1eeP3aVQ)
2. Call the function "mssqlQuery"and define the connector and query.\
   connector: mssql\
   query: select \* from user\_package<br>

   ![](/files/Feb6UbX9HkLOSK5pZRYJ)
3. Add a console for display the response from console.<br>

   ![](/files/TjCknVec9ruORvTpwoy4)

### Result

![](/files/VlZWbRI0ExoJZVCSrhCt)

## Links


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/dataset/mssqlquery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
