FIX: DTS Wizard Parses Custom Datatypes Incorrectly

Article translations Article translations
Article ID: 275670 - View products that this article applies to.
This article was previously published under Q275670
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 58303 (SQLBUG_70)
Expand all | Collapse all

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 "()" optionally specify where the parameters are to be added for the datatype. For example, the DB2 datatype VARGRAPHIC accepts "size" as a parameter and should be specified as "VARGRAPHIC () CCSID 13488". The CREATE_PARAMS value of the PROVIDER_TYPES rowset lists the values to be inserted in the parentheses. In this case, "size" 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 ("columnname" 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.

Properties

Article ID: 275670 - Last Review: October 21, 2013 - Revision: 2.0
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB275670

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com