Bruce Sorge wrote:
> I am running this simple alter table statement:
> 
> ALTER TABLE tblCurrentCouncilMembers ALTER COLUMN Member_ID int NOT NULL
> 
> And the error I get is:
> 
> Server: Msg 515, Level 16, State 2, Line 1
> Cannot insert the value NULL into column 'Member_ID', table
> 'DONE_WEB.dbo.tblcurrentCouncilMembers'; column does not allow nulls. UPDATE
> fails.
> The statement has been terminated.
> 
> So can I not do this? When I run this via the database designer, I get the
> message about a catastrophic failure. This is a dev SQL Server box.
> 

What do you get when you run:
SELECT * FROM tblCurrentCouncilMembers WHERE Member_ID IS NULL
If it returns anything, then you need to take care of those NULLs before 
running the ALTER.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2807
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6

Reply via email to