Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

Results to File header & footer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PsyberFox - 14 Mar 2008 10:18 GMT
Hi,

When I send results of query analyser to file, it puts a header (with ---)
and the footer indicating how many lines were exported. Is there a way not
have this in the export file?

Thank you!
Tom Cooper - 14 Mar 2008 16:43 GMT
To get rid of the column headings and the line with ---, in QA go to
Tools|Options, then to the results tab, uncheck the box "Print Column
Headers".  To get rid of the line indicating how many lines were exported,
use the command

Set NoCount On

Note that changing the Print Column Headers option changes the value for all
future sessions of QA, running Set NoCount On only affects that connection.

Tom

> Hi,
>
[quoted text clipped - 3 lines]
>
> Thank you!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.