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 |
mahigupt
Starting Member
1 Post |
Posted - 2008-12-22 : 07:13:04
|
Hi all,I have taken a date field in a table in sql server and i have checked allow nulls to that field but when iam trying to insert null value to the date field it is throwing an exception so can any one tell how to null values to the date field.awaiting for the reply. |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-12-22 : 07:52:35
|
Can you post the exception text? E 12°55'05.63"N 56°04'39.26" |
|
|
bklr
Master Smack Fu Yak Hacker
1693 Posts |
Posted - 2008-12-30 : 23:42:43
|
u have to alter u column to nullable r other wise send an empty string in to date columnalter table tablename alter column datefield datatype nullorcreate table temp(date datetime not null)alter table temp alter column date datetime nullinsert into temp select nullselect * from tempdrop table temp |
|
|
|
|
|