ACC2000: Upsizing to SQL Server 7.0 Converts Text to nVarChar
ID: Q200405
|
The information in this article applies to:
Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
If you upsize a table that has a field with a data type of Text, the
Upsizing Wizard will map the type to the Microsoft SQL Server 7.0 nVarChar
data type instead of the VarChar data type. This happens even though the
Upsizing Wizard report indicates that the column was mapped to VarChar.
RESOLUTION
Manually change the data types on SQL Server to the data type that you want.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Problem
- Open the sample database Northwind.mdb.
- Make a copy of the Categories table and name it tblTest.
- Open tblTest in Design view and take a look at the data types of the fields. Note that CategoryName has a data type of Text.
- Close the tblTest table.
- On the Tools menu, point to Database Tools, and then click Upsizing Wizard.
- Upsize the database to either a new or an existing SQL Server database.
- In the Upsizing Wizard, select the tblTest table to be upsized.
- When the wizard is finished, you see in the Upsizing Wizard report that the type column of the CategoryName field is VarChar.
- On a computer with the full version of SQL Server 7.0 installed, in SQL Server Enterprise Manager, open the database that you upsized to.
- Open the tblTest table in Design view.
Note that the type column shows that CategoryName has a data type of nVarChar, not VarChar.
REFERENCES
For more information about the Upsizing Wizard, click Microsoft Access Help on the
Help menu, type "use the Upsizing Wizard" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned.
Additional query words:
pra
Keywords : kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 13, 1999