</head>
Sentencia SQL para establecer DEFAULT en un campo en SQL Server
Buenas!
Luego de varios intentos sin éxito usando:
ALTER TABLE [dbo].[TABLA] ALTER COLUMN [COLUMN] SET DEFAULT ‘Default Value’
Como lo dice el artículo:
http://technet.microsoft.com/es-es/library/ms174123.aspx
Encontré la solución:
ALTER TABLE [dbo].[TABLA] ADD DEFAULT ‘Default Value’ FOR [COLUMN]
Aquí esta el thread con la solución:
http://www.houseoffusion.com/groups/sql/thread.cfm/threadid:800
| Print article | This entry was posted by Walter Poch on 12/03/2007 at 6:15 PM, and is filed under SQL. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 years ago
gracias ! me salvaste!
about 2 years ago
Me alegro que te haya ayudado!
Saludos!
about 1 year ago
Gracias por el dato, BUENISIMO