|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SSMS explorer. Sorting the columns names in a table.Hi there,
I would like to know if we can sort the columns name of a table by default in the SSMS 2005/2008 explorer. I would like to display first the primary, unique and foreign keys columns, then the rest of them, alphabetically sorted. Best regards No, there is no such functionality.
On 2/24/09 8:31 AM, in article efXZG#FiJHA.***@TK2MSFTNGP03.phx.gbl, Show quoteHide quote "Oriane" <oriane@noemail.noemail> wrote: > Hi there, > > I would like to know if we can sort the columns name of a table by default > in the SSMS 2005/2008 explorer. > I would like to display first the primary, unique and foreign keys columns, > then the rest of them, alphabetically sorted. > > Best regards > Hi Aaron,
"Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> a écrit dans le So, is there a simple way to "manually" sort the columns of a table via SQL message de news:C5B1B2E8.EABC%ten.xoc@dnartreb.noraa... > No, there is no such functionality. (when the column is alreday filled with data) ? Thank you (I have reset the system clock :-)). Oriane (oriane@noemail.noemail) writes:
> So, is there a simple way to "manually" sort the columns of a table via If you want to change the table definition to reflect the desired order,> SQL (when the column is alreday filled with data) ? you will have to go the long road, and create a new table, migrate data over, move referencing foreign keys etc. Certainly an advanced operation, which requires good understanding of what you are doing. -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx (Also can you please fix your system clock; it is not 2/24 in any part of
the world I'm aware of...) On 2/24/09 8:31 AM, in article efXZG#FiJHA.***@TK2MSFTNGP03.phx.gbl, Show quoteHide quote "Oriane" <oriane@noemail.noemail> wrote: > Hi there, > > I would like to know if we can sort the columns name of a table by default > in the SSMS 2005/2008 explorer. > I would like to display first the primary, unique and foreign keys columns, > then the rest of them, alphabetically sorted. > > Best regards > You just can sort columns alphabetically (ascending or descenting) using
SSMS' s Object Explorer Details. -- Show quoteHide quoteEkrem Önsoy "Oriane" <oriane@noemail.noemail> wrote in message news:efXZG%23FiJHA.760@TK2MSFTNGP03.phx.gbl... > Hi there, > > I would like to know if we can sort the columns name of a table by default > in the SSMS 2005/2008 explorer. > I would like to display first the primary, unique and foreign keys > columns, then the rest of them, alphabetically sorted. > > Best regards Hi Ekrem,
"Ekrem Önsoy" <ek***@compecta.com> a écrit dans le message de Can you be more precise ?news:910A0F22-C24B-4818-90DF-A7817B783105@microsoft.com... > You just can sort columns alphabetically (ascending or descenting) using > SSMS' s Object Explorer Details. Best regards Open up SSMS and connect to your SQL Server instance.
Then expand Databases node and at the right side, you'll see Object Explorer Details tab by default. If it's not open, then you can use View -> Object Explorer Details menu to open it. In this tab, you'll find column headers such as "Name" and when you click on this column header once, you'll see that it'll sort the items by their names and if you click again, it'll sort them descending. -- Show quoteHide quoteEkrem Önsoy "Oriane" <oriane@noemail.noemail> wrote in message news:030EFEFE-92FB-4370-A81C-A75626AACB04@microsoft.com... > Hi Ekrem, > "Ekrem Önsoy" <ek***@compecta.com> a écrit dans le message de > news:910A0F22-C24B-4818-90DF-A7817B783105@microsoft.com... >> You just can sort columns alphabetically (ascending or descenting) using >> SSMS' s Object Explorer Details. > Can you be more precise ? > > Best regards Enjoy it mate =)
-- Show quoteHide quoteEkrem Önsoy "Oriane" <oriane@noemail.noemail> wrote in message news:53DA723A-9520-4262-A240-13AAC42CBE29@microsoft.com... > Hi Ekrem, > > You made me discover something ! > > Thanks Hi Oriane,
Thank you for using Microsoft MSDN Managed Newsgroup. My name is Mark Han. I am glad to work with you on this issue. From your description, I understand that you would like to sort the column as the following. display first the primary, unique and foreign keys columns and then display the rest as alphabetically sorted. If I have misunderstood, please let me know. Based on my research, it seems that there is no such function to meet your requirement. However we can display the columns alphabetically in SQL 2008 Besides, I have apply your requirement to our dev team, if anything updated, i will public it. If there is anything unclear, please do not hesitate to let me know. Have a nice day. Best regards, Mark Han Microsoft Online Community Support =========================================================== Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msd***@microsoft.com. =========================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx ============================================================ This posting is provided "AS IS" with no warranties, and conf
Other interesting topics
SQL Server Management Studio Cannot Open SQL Express Files
Maintainance Plans Disappeared from SSMS sql profiler writing on an unused partition? Need help debugging this... SQL Server 2005 Database Tuning Advisor Properties of DB in SQL 2008 SSMS - Arithmetic overflow job notifications via db mail on x64 SQL 2k5, through EM ? Profiler - DTA - Tables Missing Primary Key 2005 Diagram - Hiding Relationship SQL 2005 Profiler - eventclass 65528, 65531, 65534 |
|||||||||||||||||||||||