Whenever I want to add a column to a table it usually goes something like this:
- Fire up SQL Server Management Studio (SSMS)
- Select "Design" on the table I want to add the column to
- Add the new column to the table
- Save
- Get an error that SSMS can't save because it would need to drop the table (and it can't because the the table has foreign keys on it).
- Get frustrated that I forgot that this is something that SSMS can't do
- Construct an alter table command by hand to add the column
- Move on with life.
This time I am adding a step between numbers 6 and 7. I thought I would ask why SSMS can't make a simple alter table statement to add my new column in.
(In case it matters I am running SSMS 2008 against SQL Server 2008.)