myLittleTools Community Forum

Welcome Guest Search | Active Topics | Members | Log In | Register

Altering Column order via Mylittleadmin Options · View
edmundc
Posted: Tuesday, November 07, 2006 11:32:10 PM
Rank: Newbie
Groups: Member

Joined: 11/7/2006
Posts: 1
Points: 0
Location: New Zealand
Hi,

Wondering if the tool is possible in modifying column name and order within tables.
I have full version of mylittleadmin which I thought that it should have at least some of the advance features within SQL Server Management Studio like when modifying tables.
Please let me know if it is possible and if there is anything that needs to be turned on thanks.

Regards
Edmund
elian
Posted: Wednesday, November 08, 2006 7:15:04 AM

Rank: Administration
Groups: Administration

Joined: 9/11/2006
Posts: 605
Points: 649
Location: Enghien Les Bains, France
Hi

No. This is not possible.

The physical column order should only be significant when you use SELECT statement and SELECT * statement can be considered like a bad programming statement. Order the columns in your SELECT statement or alternatively create a view over the table.

If ever you must change the order, then the only solution is to create a new table and populate it from the original. Keep in mind that you'll need to disable/enable all constraints, recreate all indexes, re-compute all views/sp/functions that depend on your table and of course copy the whole amount of data (which could take a while if the table contains thousands of rows). This is what SSMS does...

Best regards
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme created by myLittleTools
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.