How to make my SQL query as an exe file | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

How to make my SQL query as an exe file

I want to make a sql query as exe file. If the users click on the icon, my sql query will be exeucted and the result can be stored in a excel or text file. Is this possible? Thanks
Issolla
Yes it is. You can make cmd file executing osql command line utility with query and output text file as parameters.
]]>