Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 DTS from MSAccess problem

Author  Topic 

luisvaldez
Starting Member

1 Post

Posted - 2006-12-12 : 21:33:29
Hello,

I've got a problem exporting my database from MSAccess to my SQL Srv Express.

I'm exporting a database that has some "memo" fields. These fields are exported as "ntext" type. I'd like to have a way to exported as "varchar".

Is there any way I can write a SQL script to change every "ntext" field in my new SQL database to "varchar"?


Thanks in advance,

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-12-13 : 01:20:42
ALTER TABLE <YourTableNameHere> ALTER COLUMN <YourColumnNameHere> VARCHAR(n)

Or, in the convert script,

CAST(<MS ACCESS column name here> AS VARCHAR(n))


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -