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.
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 LarssonHelsingborg, Sweden |
|
|
|
|
|