Microsoft KB Archive/275670

= FIX: DTS Wizard Parses Custom Datatypes Incorrectly =

Article ID: 275670

Article Last Modified on 3/14/2006

-

APPLIES TO


 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q275670



BUG #: 58303 (SQLBUG_70)



SYMPTOMS
When you use Data Transformation Services (DTS) to export data to other data sources using third party OLEDB providers, the CREATE TABLE command fails with a syntax error if you have custom datatypes specified for the destination table.



CAUSE
When you use custom datatypes with DTS, the creation parameter markers, an opening parenthesis and closing parenthesis &quot;&quot; optionally specify where the parameters are to be added for the datatype. For example, the DB2 datatype VARGRAPHIC accepts &quot;size&quot; as a parameter and should be specified as &quot;VARGRAPHIC CCSID 13488&quot;. The CREATE_PARAMS value of the PROVIDER_TYPES rowset lists the values to be inserted in the parentheses. In this case, &quot;size&quot; would appear in this entry. By default, in the absence of embedded parentheses, parameters are placed at the end of the data type. The DTS Wizard fails to account for embedded parentheses in a data type and incorrectly appends the size information to the end, and then generates the CREATE TABLE statement incorrectly as: CREATE TABLE tablename (&quot;columnname&quot; VARGRAPHIC CCSID 13488 (size)) When you run the statement at the destination table, the syntax error occurs.



STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0

For more information, contact your primary support provider.

Additional query words: creation params param incorrect placement size end suffix

Keywords: kbbug kbfix KB275670

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.