久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='pUKjR'></tfoot>

      1. <small id='pUKjR'></small><noframes id='pUKjR'>

      2. <legend id='pUKjR'><style id='pUKjR'><dir id='pUKjR'><q id='pUKjR'></q></dir></style></legend>
          <bdo id='pUKjR'></bdo><ul id='pUKjR'></ul>

        <i id='pUKjR'><tr id='pUKjR'><dt id='pUKjR'><q id='pUKjR'><span id='pUKjR'><b id='pUKjR'><form id='pUKjR'><ins id='pUKjR'></ins><ul id='pUKjR'></ul><sub id='pUKjR'></sub></form><legend id='pUKjR'></legend><bdo id='pUKjR'><pre id='pUKjR'><center id='pUKjR'></center></pre></bdo></b><th id='pUKjR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pUKjR'><tfoot id='pUKjR'></tfoot><dl id='pUKjR'><fieldset id='pUKjR'></fieldset></dl></div>

        Ansible 中的 SQL Server 數據庫查詢

        SQL Server database queries in Ansible(Ansible 中的 SQL Server 數據庫查詢)

      3. <i id='vyQg5'><tr id='vyQg5'><dt id='vyQg5'><q id='vyQg5'><span id='vyQg5'><b id='vyQg5'><form id='vyQg5'><ins id='vyQg5'></ins><ul id='vyQg5'></ul><sub id='vyQg5'></sub></form><legend id='vyQg5'></legend><bdo id='vyQg5'><pre id='vyQg5'><center id='vyQg5'></center></pre></bdo></b><th id='vyQg5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vyQg5'><tfoot id='vyQg5'></tfoot><dl id='vyQg5'><fieldset id='vyQg5'></fieldset></dl></div>

        <small id='vyQg5'></small><noframes id='vyQg5'>

        1. <tfoot id='vyQg5'></tfoot>

                <bdo id='vyQg5'></bdo><ul id='vyQg5'></ul>

                <legend id='vyQg5'><style id='vyQg5'><dir id='vyQg5'><q id='vyQg5'></q></dir></style></legend>
                  <tbody id='vyQg5'></tbody>
                  本文介紹了Ansible 中的 SQL Server 數據庫查詢的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我想知道社區中是否有人使用 Ansible 操作過 Microsoft SQL Server 數據庫?

                  I would like to find out if anyone in the community has used Ansible to manipulate a Microsoft SQL Server database?

                  我們想向我們用 Ansible 編寫的環境配置腳本添加一個任務,該腳本將 INSERT 行插入到 SQL Server 表中.這些行將具有在我們的變量文件中指定的參數.

                  We want to add a task to our environment configuration scripts written in Ansible that will INSERT rows into a SQL Server table. The rows will have parameters that are specified in our variables files.

                  我一直無法找到實現此目的的特定 Ansible 模塊,所以想聽聽是否有人在其他方面取得了成功?

                  I have been unable to locate a specific Ansible module for achieving this so would like to hear if anyone has has success in some other way?

                  推薦答案

                  為了完整起見,這里是 Ansible to SELECT & 中使用的解決方案的語法.插入 Microsoft SQL Server:

                  For completeness here is the syntax of the solution used in Ansible to SELECT & INSERT for Microsoft SQL Server:

                  插入

                  - name: 'insert row to SQL server DB'
                    win_shell: "invoke-sqlcmd -username \"{{db_user}}\" -password \"{{db_pass}}\" -Query \"INSERT INTO Addresses (DoorNum,Street,Town,PostCode) VALUES ({{ item.doornum }},'{{ item.street }}','{{ item.town }}''{{ item.postcode }}')\""
                  

                  選擇

                  - name: 'select from SQL server DB'
                    win_shell: "invoke-sqlcmd -username \"{{db_user}}\" -password \"{{db_pass}}\" -Query \"SELECT ID FROM Addresses WHERE PostCode = '{{ item.postcode }}'\" | Select-Object * -ExcludeProperty ItemArray, Table, RowError, RowState, HasErrors | ConvertTo-Json"
                    register: response
                  
                  - set_fact:
                      ids: "{{ response.stdout|from_json}}"
                  
                  - debug:
                      var: ids
                  

                  這篇關于Ansible 中的 SQL Server 數據庫查詢的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                  How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)
                  <legend id='rju6h'><style id='rju6h'><dir id='rju6h'><q id='rju6h'></q></dir></style></legend>

                      • <i id='rju6h'><tr id='rju6h'><dt id='rju6h'><q id='rju6h'><span id='rju6h'><b id='rju6h'><form id='rju6h'><ins id='rju6h'></ins><ul id='rju6h'></ul><sub id='rju6h'></sub></form><legend id='rju6h'></legend><bdo id='rju6h'><pre id='rju6h'><center id='rju6h'></center></pre></bdo></b><th id='rju6h'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rju6h'><tfoot id='rju6h'></tfoot><dl id='rju6h'><fieldset id='rju6h'></fieldset></dl></div>

                        • <small id='rju6h'></small><noframes id='rju6h'>

                            <bdo id='rju6h'></bdo><ul id='rju6h'></ul>
                              <tbody id='rju6h'></tbody>

                          • <tfoot id='rju6h'></tfoot>
                            主站蜘蛛池模板: 国产在线播放一区二区三区 | 毛片免费观看 | 成av在线| 亚洲欧美成人在线 | 91在线观看免费视频 | 欧美精品一二三区 | 一区二区成人在线 | 国产在线一区二区三区 | 国产日韩久久 | 九九精品在线 | 天天草天天干 | 色频| 亚洲视频中文字幕 | 又爽又黄axxx片免费观看 | www.日本国产 | 欧洲一区二区三区 | 日本中文字幕在线观看 | 久久国产精品首页 | 男人天堂色 | 三极网站| 久久蜜桃av一区二区天堂 | 日韩欧美国产不卡 | 欧美日韩一区二区视频在线观看 | 日本精a在线观看 | 精品啪啪 | 中文字幕在线一区 | 蜜桃视频在线观看免费视频网站www | 日本成人区 | 日韩在线视频网址 | 精品亚洲一区二区三区 | 精品日韩一区二区 | 国内精品一区二区三区 | 成人免费在线视频 | 91成人在线 | 久久久久国色av免费观看性色 | 中文字幕第90页 | 看真人视频一级毛片 | 美女艹b| 亚洲一区二区三区免费视频 | 日日操夜夜操天天操 | 特黄小视频|