Home > Logging, SQL Server > Return a custom delimited result set

Return a custom delimited result set

Developers very often require special character delimited query results, so that it can be used in other softwares and spread sheets. SQL server 2005 native tool provides a feature to accomplish this task without dropping any sweat. Follow the steps

  • Step 1: In the SSMS, select tools.
  • Step 2: click on options.
  • Step 3: Expand the query result node and Sql server node. Click on result to text.
  • Step 4: Select the column delimiter.
  • Step 5: click OK.

Note* Output format changes will be applied only on the new query window

From now, on executing the query you will get result as given above ( based on the delimiter selected by you )

Advertisements
Categories: Logging, SQL Server
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: