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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 how to no display the resultstitle

Author  Topic 

andryi
Starting Member

17 Posts

Posted - 2010-04-05 : 16:55:19

In the image I try to no display this lines , using sp_makewebtask

this is my code:

EXEC sp_makewebtask
@outputfile='C:\REPORTS\reportFinal.xls',
@query='SELECT * FROM tabla',
@lastupdated=0 ,
@resultstitle=' '

but how can I got only the data just the data, can anybody help me?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-05 : 16:58:34
Use bcp or DTS/SSIS instead.

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

Subscribe to my blog
Go to Top of Page

andryi
Starting Member

17 Posts

Posted - 2010-04-06 : 12:00:25
could you put an example please?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-06 : 14:59:54
I can't post an example of DTS/SSIS since that's a tool you use to import/export data, but here's an example using bcp.exe from a cmd window:

bcp.exe db1.dbo.table1 out C:\Reports\reportFinals.csv -t, -T -Sserver1\instance1 -c -r\r\n

Comma separated files can be opened from Excel.

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

Subscribe to my blog
Go to Top of Page
   

- Advertisement -