C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




adding column in SQL server 2000


Posted Date: 31 Oct 2006      Total Responses: 2

Posted By: fredy       Member Level: Bronze     Points: 2


i want soln in sql server 2000
i am adding a new column using alter table
i want this column to be placed as first column(normally it will be added last)




Responses

Author: Vadivel Mohanakrishnan    31 Oct 2006Member Level: DiamondRating:     Points: 2
ALTER TABLE always adds new columns at the end of the table and WILL NOT LET YOU add new columns AT A SPECIFIC POSITION.

Work Around: Make use of SQL Server Enterprise Manager.

Inside Enterprise Mgr go to the design view of the table (ie., choose a table and right click and say 'Design Table'). Now you can right click on a location / position of ur choice and select 'Insert Column'.

FYI, Enterprise Mgr drops and recreates the table to add a column at a specific location. So there might be a delay in that process.

Hope this helps!

Best Regards
Vadivel

MVP SQL Server
http://vadivel.blogspot.com


Author: Rajaraman    31 Oct 2006Member Level: DiamondRating:     Points: 2
you cant' it from alter command, so use enterprise mgr to solve it..


Post Reply
You must Sign In to post a response.
Next : autopostback problem
Previous : menuitem
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing

Contact Us    Privacy Policy    Terms Of Use