# Using SQL Stored Procedure

Stored procedure is provided as a part of the data interface. You should consider using this stored procedure when you need to insert two or more records into the EcENTITY table AND these records have logical association/s.

Name: EcWriteEntity Parameters:

* ```sql
  @EntName NVARCHAR (100)
  ```
* ```sql
  @BulkID INT = -1 OUT
  ```
* ```sql
  @EntClassID NVARCHAR (10) = 'ITEM'
  ```


---

# 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://help.besmart.software/erpc/data-interface-reference-manual/importing-data-into-a-vault/writing-data-into-data-interface/using-sql-stored-procedure.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.
