Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/07/2011, 11:50
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Clave primaria acepta valores nulos

Probe esto y si es asi como te digo:


create table #temp
(
id int not null
)

insert into #temp (id) values (null)

Msg 515, Level 16, State 2, Line 1
Cannot insert the value NULL into column 'id', table 'tempdb.dbo.#temp_________________________________ __________________________________________________ ____________________________000000005B01'; column does not allow nulls. INSERT fails.
The statement has been terminated.


A que te refieres con valores null?? valores sin nada o con blancos?? porque es diferente un NULL a un ''.

Saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me