PRB: ADOXCE Error Message: "..Specified type was invalid" for SQL Server CE Table (274255)
The information in this article applies to:
- Microsoft SQL Server 2000 Windows CE Edition
This article was previously published under Q274255 SYMPTOMS
If you use Microsoft CE ActiveX Data Objects (ADOXCE) 3.1 for DDL to create a table in a SQL Server CE database, and you do not specify a data type, the following error message occurs:
Err.Number : -2147217859
Err.Description : A specified type was invalid CAUSE
When you do not specify a data type, ADOXCE interprets the column as adVarWChar (type 202). Because the length is not specfied when you use the DefinedSize property for the column, the SQL Server CE engine reports an error.
RESOLUTION
Always specify the correct data type in the Type property. Also specify the length of data, the DefinedSize property, where appropriate.
STATUS
This behavior is by design.
REFERENCES
Microsoft ADO for Windows CE SDK (ADOCE) 3.1 Books Online
Modification Type: | Major | Last Reviewed: | 11/23/2000 |
---|
Keywords: | kbDSupport kbprb KB274255 |
---|
|