Output query result to a file?


Is there any method to save the sql query result to a file? I mean auto save the result to the folder. any sql query command to do so?

p/s: I am running php webpage and connect to MS SQL database with setting the query command in php page(it's ok to run the MS SQL query command in my php page).

Thanks in advance!
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Shanmuga SundaramConnect With a Mentor Director of Software EngineeringCommented:
Shanmuga SundaramDirector of Software EngineeringCommented:
You can use the Mckoi JDBCScriptTool command to do this.
Ken SelviaConnect With a Mentor RetiredCommented:
OSQL.EXE is a dos command line query tool that is installed with the SQL client. It can also save query results to a file.
BPC.EXE is a similar tool
All Courses

From novice to tech pro — start learning today.