Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing a text file from SQL Server 7

Status
Not open for further replies.

waggers

Programmer
Sep 7, 2000
13
0
0
AU
I am trying to run an automated job from SQL Server that will run a number of stored procedures and then create a static HTML file based on the results.
Does anybody know how to write to a text file from SQL Server - I am aware that this can be done using ActiveX scripts but how do I get one of these to execute?
I would prefer to do all this from a stored procedure as I could then include this in the automatic overnight processing.
TIA
Tom Waghorn
 
You could use xp_cmdshell with bcp.
Or you could schedule a DTS package.

You might also have a look at the web assisant wizard, which may be able to do what you looking for. [sig][/sig]
 
Use the Web Wizard to create your HTML page. It will let you select stored procedure(s) and run when you want. I've used it and it works well. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top