12 lines
500 B
Plaintext
12 lines
500 B
Plaintext
-- 1. Elimina la restricción DEFAULT
|
|
ALTER TABLE [Importaciones_HC].[dbo].[productos_frecuentes]
|
|
DROP CONSTRAINT [DF__productos__certi__3EDC53F0];
|
|
|
|
-- 2. Modifica el tipo de dato
|
|
ALTER TABLE [Importaciones_HC].[dbo].[productos_frecuentes]
|
|
ALTER COLUMN [certificado_origen] NVARCHAR(100);
|
|
|
|
-- 3. (Opcional) Si quieres volver a agregar un valor por defecto
|
|
ALTER TABLE [Importaciones_HC].[dbo].[productos_frecuentes]
|
|
ADD CONSTRAINT DF_productos_certificado_origen DEFAULT '' FOR [certificado_origen];
|