Write output to .sql file

Got a problem you cannot solve? Try here.
Post Reply
Speedy84
Posts: 18
Joined: Tue May 01, 2007 4:02 am

Write output to .sql file

Post by Speedy84 »

Is there a possibility to write the script output to an .sql file.

I need this to make a schedule task in windows to be executed and call a stored procedure to backup my SQL Express 2005 database.

But i can only write the output to an .txt file or an .ini file.
Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Post by Edhy »

Hi,

I really don't know the answer to this, but maybe you could simply rename the resulting .txt file to .sql when the process is done.
Edhy Rijo
Thom Child and Family Services
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

The write to text file command will write to any fielname, I do this all the time. The file does not have to have a txt extension in can have a sql extension, it's still a text file.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply