> For the complete documentation index, see [llms.txt](https://docs.mydbsync.com/cloud-replication-main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mydbsync.com/cloud-replication-main/troubleshooting/incorrect-syntax-near-column-name.md).

# Incorrect Syntax Near Column Name

#### Issue Description: <a href="#incorrectsyntaxnearcolumnname-issuedescription" id="incorrectsyntaxnearcolumnname-issuedescription"></a>

Salesforce and Microsoft SQL Server Column size mismatch Issue : A column of a table in Microsoft SQL server has an column size lesser than that of column that is mapped with that of configured Salesforce Object so while Replicating the data, The system throws the error of below format.&#x20;

SEVERE \[Thread-CONSUMER:Opportunity] com.dbsync.salesforce.integration.DBAdapter.commitSynch BATCHED INSERT FAILED:Incorrect syntax near 'r\_of\_Approved\_Transact'.

#### Solution:  <a href="#incorrectsyntaxnearcolumnname-solution" id="incorrectsyntaxnearcolumnname-solution"></a>

The issue is because the Microsoft SQL Server limits any column name of a table to be more than fifty characters, To overcome this issue you might have to Rename the column name with no more than fifty characters from the replication tool itself.&#x20;

Follow, the article from the link [Rename Table or Column](/cloud-replication-main/target-setup/advance-settings/rename-table-or-column.md) to renaming a column from replication UI&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.mydbsync.com/cloud-replication-main/troubleshooting/incorrect-syntax-near-column-name.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.
