Files
doc-exports/docs/dataartsstudio/umn/dataartsstudio_03_0106.html
chenxiaoxiong f9e2808b7c DataArts UMN 20250810 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
2025-09-02 10:44:13 +00:00

17 lines
1.5 KiB
HTML

<a name="dataartsstudio_03_0106"></a><a name="dataartsstudio_03_0106"></a>
<h1 class="topictitle1">What Can I Do If Error Message "Unable to execute the SQL statement" Is Displayed When I Import Data from OBS to SQL Server?</h1>
<div id="body8662426"><div class="section" id="dataartsstudio_03_0106__en-us_topic_0173586862_section146105598718"><h4 class="sectiontitle">Symptom</h4><p id="dataartsstudio_03_0106__en-us_topic_0173586862_p16323626819">When CDM is used to import data from OBS to SQL Server, the job fails to be executed and error message "Unable to execute the SQL statement. Cause: "String or binary data truncated" is displayed.</p>
</div>
<div class="section" id="dataartsstudio_03_0106__en-us_topic_0173586862_section122891983182"><h4 class="sectiontitle">Possible Cause</h4><p id="dataartsstudio_03_0106__en-us_topic_0173586862_p0855201051819">The data in OBS exceeds the length limit of the SQL Server database.</p>
</div>
<div class="section" id="dataartsstudio_03_0106__en-us_topic_0173586862_section1131621151917"><h4 class="sectiontitle">Solution</h4><p id="dataartsstudio_03_0106__en-us_topic_0173586862_p8281122915195">When creating a table in the SQL Server database, increase the length of the database field. The length of the database field must be greater than that of the data in OBS.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_03_0027.html">DataArts Migration (CDM Jobs)</a></div>
</div>
</div>