Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL export to .txt file

Author  Topic 

Drive01
Starting Member

1 Post

Posted - 2010-05-18 : 15:28:31
My DBA tells me:

By default, if header is required from a SQL query text output, then a dash-line separating the detail from the header row also comes out.

Is there a way to create the export without the dash line?

Thank you,
Donnette

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-05-18 : 15:39:53
The DBA is correct if you are exporting via SSMS query results. What you can do instead is export via bcp.exe, DTS/SSIS, or the import/export wizard inside SSMS.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Nikhil1home
Starting Member

23 Posts

Posted - 2010-05-18 : 17:50:03
quote:
Originally posted by Drive01

My DBA tells me:

By default, if header is required from a SQL query text output, then a dash-line separating the detail from the header row also comes out.

Is there a way to create the export without the dash line?

Thank you,
Donnette



Just curious. Doesn't the DBA know the answer to this question? Or does he just know what you can't do?
Go to Top of Page
   

- Advertisement -