Jag har en tabell som innehåller en kolumn som i dagsläget är en "text", det känns lite onödigt och nu vill jag konvertera den till en varchar som kan ta 500 tecken.
Har testat att använda ASP.NET Enterprise Manager, men då skapar den bara en temp-tabell med de "rätta" kolumntyperna och lägger inte över själva datan.
Jag hittade följande, men jag vet inte om det hjälper dig.
--This statement will generate an error.
ALTER TABLE Tbl
ALTER COLUMN Notes text
--This is the error.
Cannot alter column 'Notes' because it is 'ntext'.
All BLOB data that you insert into the table will not be stored in the data row. Instead, an out-row BLOB root pointer that points to the root structure of a data tree is stored in the row. To store BLOB data in row, execute the sp_tableoption stored procedure with the text in row option.