SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Generating script for ALTER TABLE in SSMS 2005
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

srivatsahg
Yak Posting Veteran

Germany
71 Posts

Posted - 08/05/2009 :  10:13:23  Show Profile  Reply with Quote
Is there a way to have SQL Server Management Studio 2005 to generate the script to alter a table when changing the design of a table in the design wizard?

The option is disabled in the context menu item
Is there a switch to turn that on in SSMS 2005?


Regards
Srivatsa

srivatsahg
Yak Posting Veteran

Germany
71 Posts

Posted - 08/05/2009 :  10:32:37  Show Profile  Reply with Quote
Hello Forum

I figured this out by myself
All i did was ...

1. Open the desired table to "modify"

2. Make your changes (but don't save yet).
Select the column that changed --> Right click --> Generate Change Script.


I still wonder why do we have ALTER TABLE option (which is disabled anyway) in SSMS GUI
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22761 Posts

Posted - 08/06/2009 :  02:57:10  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
quote:
Originally posted by srivatsahg

Hello Forum

I figured this out by myself
All i did was ...

1. Open the desired table to "modify"

2. Make your changes (but don't save yet).
Select the column that changed --> Right click --> Generate Change Script.


I still wonder why do we have ALTER TABLE option (which is disabled anyway) in SSMS GUI


Becuase it doesn't know what the user is supposed to alter

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000