Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Nakul Vachhrajani is a Technical Specialist & Systems development professional with iGATE. He holds a MCTS (SQL Server 2008: Implementation & Maintenance)
Browse by Tags · View All
#SQLServer 241
SQL Server 240
Administration 207
DBA 196
Tips 185
Development 185
T-SQL 180
#TSQL 178
Guidance 122
Tools and Utilities 112

Archive · View All
April 2011 14
March 2012 11
December 2011 11
March 2011 11
December 2012 10
October 2011 10
January 2011 10
January 2013 9
November 2012 9
October 2012 9

#0188-SQL Server-How to edit XML documents with the SSMS? Using XML Editor feature of SSMS

Aug 20 2012 12:00AM by Nakul Vachhrajani   

Today’s an impromptu post, and the intention is to draw attention to a “hidden” feature of the SQL Server Management Studio (SSMS).

Recently, we were working on designing changes that were required in an XML that was required to be exchanged between the application and the database. The team had gathered in a meeting room for a technical design session – a couple of application developers, a database developer and a database administrator.

We had the SQL Server Management Studio running to look at the table design and create/query test data. To edit the existing XML, the application developers launched an instance of the Visual Studio IDE. The database developer and administrator immediately mentioned that there was no need to launch Visual Studio. The question that came from the application team was - “Why?” The simple answer is

SSMS comes with it’s own XML editor!

Here’s the problem though – it’s not obvious. The XML editor in the SSMS is an extension to the query editor window, which is probably why it’s not obvious. The tools and options related to XML editing are only available if an XML document is actually opened within the SSMS. I prepared a sample XML document for this post, and simply opened it using the SSMS. This is how the SSMS interface changes.

image

Notice that in the Text Editor toolbar, we now have the additional operations enabled (from Left to Right):

  1. Create XML schema based on given XML document
  2. Reformat Selection
  3. Format the whole Document
  4. Show XSLT output
  5. Debug XSLT
  6. Cancel XSLT output

The reason one can edit XML documents within the SSMS is because the SSMS is ultimately a Visual Studio shell, inheriting call features common at the shell.

Do you use the XML editor within SSMS? Do leave a note as you go.

Until we meet next time,

Be courteous. Drive responsibly.

Tags: #SQLServer, SQL Server, Development, Tips, SSMS, Tools and Utilities, HowTo


Nakul Vachhrajani
4 · 33% · 10680
6
 
0
Lifesaver
 
 
 
0
Incorrect



Submit

2  Comments  

  • It is also an XSD editor that allows you to create XML Schema Definitions, with intellisense and real-time validations. It also has the capability to auto-generate the schema of an XML document/fragment.

    Unfortunately, there does not seem to be a simple way to open the XML editor window. I submitted a connect item in 2008 which is unfortunately closed as "wont fix". I need this window quite often and the short cut I am doing is to run SELECT 1 AS A FOR XML PATH('') which produces a dummy XML result and then I click on the XML result to open the XML editor.

    I really look forward to see a menu, tool-bar button or keyboard short cut some day to open the XML editor.

    commented on Aug 20 2012 2:36AM
    Jacob Sebastian
    1 · 100% · 32004
  • Thank-you for sharing additional information about the editor, Jacob. It's indeed sad that there is no easy way to launch the XML editor window. Although the connect item is closed, I added my vote of support to it - just in case Microsoft looks at "changed after closed" metrics.

    commented on Aug 20 2012 3:02AM
    Nakul Vachhrajani
    4 · 33% · 10680

Your Comment


Sign Up or Login to post a comment.

"#0188-SQL Server-How to edit XML documents with the SSMS? Using XML Editor feature of SSMS" rated 5 out of 5 by 6 readers
#0188-SQL Server-How to edit XML documents with the SSMS? Using XML Editor feature of SSMS , 5.0 out of 5 based on 6 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]