本文介紹了如何在不使用 sql server 代理作業(也沒有 BI)的情況下按計劃運行 sql 查詢并將結果輸出到 excel 文件中的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想按特定計劃(每周)運行 sql 查詢,并且還需要在 excel 文件中捕獲輸出.
I want to run a sql query on a specific schedule (weekly) and need to capture the output in an excel file as well.
由于業務限制,我們無法使用 SQL 服務器作業,也無法安裝商業智能工具.
Due to business restrictions we cannot use SQL server jobs and we cannot install Business Intelligence tools too.
問候,RP
推薦答案
設置 Windows 計劃任務以運行 osql 實用程序,它可以觸發您的 SQL
set a Windows schedule task to run the osql Utility, which can fire off your SQL
這篇關于如何在不使用 sql server 代理作業(也沒有 BI)的情況下按計劃運行 sql 查詢并將結果輸出到 excel 文件中的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!