Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 21st, 2007, 02:02 PM
Registered User
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with saving results grid to a file

I cannot get the Query Analyzer to save the column titles when saving the results grid to a text file. Is there a way to change this?


Old May 28th, 2007, 06:43 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post

Try with BCP utility. From Query analyser you can copy/save the column headers, if you dont mind with the data formatting, change to TEXT mode and try to copy/paste into a text file.

- Vijay G
Strive for Perfection
Old June 1st, 2007, 11:42 PM
Friend of Wrox
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts

If you really want to do it from query analyzer, change the result options to "TAB DELIMITED" and use the Text mode of Query Analyzer, instead.

--Jeff Moden

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with saving a file nelly78 .NET Framework 2.0 3 October 24th, 2008 01:09 AM
Saving results as Excel chrscote Classic ASP Databases 3 August 9th, 2007 05:56 PM
Edit Query Results in Results Grid druid2112 SQL Server 2005 1 June 28th, 2007 08:49 AM
Translating a XML with XSL and saving results DevOne XML 1 April 9th, 2005 07:32 AM
.Net File Saving Problem vinod_pawar1 General .NET 1 July 4th, 2004 09:30 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.