pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

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

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

    <legend id='FSyop'><style id='FSyop'><dir id='FSyop'><q id='FSyop'></q></dir></style></legend>

      • <bdo id='FSyop'></bdo><ul id='FSyop'></ul>

        <tfoot id='FSyop'></tfoot>

        WinForms 應用程序設計——將文檔從 SQL Server 移動

        WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)

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

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

            <tbody id='QOeFK'></tbody>

            • <legend id='QOeFK'><style id='QOeFK'><dir id='QOeFK'><q id='QOeFK'></q></dir></style></legend><tfoot id='QOeFK'></tfoot>
                • <bdo id='QOeFK'></bdo><ul id='QOeFK'></ul>
                • 本文介紹了WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個連接到 SQL Server 的標準 WinForms 應用程序.該應用程序允許用戶使用圖像列將當前存儲在數據庫中的文檔上傳到表格中.

                  I have a standard WinForms application that connects to a SQL Server. The application allows users to upload documents which are currently stored in the database, in a table using an image column.

                  我需要更改此方法,以便將文檔存儲為文件,并將指向該文件的鏈接存儲在數據庫表中.

                  I need to change this approach so the documents are stored as files and a link to the file is stored in the database table.

                  使用當前的方法 - 當用戶上傳文檔時,他們不受存儲方式的影響,因為他們連接到數據庫,他們不需要知道關于文件存儲位置的任何信息,沒有特殊的目錄權限等是必要的.如果我為文檔設置網絡共享,我希望避免任何 IT 問題,例如用戶必須有權訪問此目錄才能上傳或訪問現有文檔.

                  Using the current approach - when the user uploads a document they are shielded from how this is stored, as they have a connection to the database they do not need to know anything about where the files are stored, no special directory permissions etc are required. If I set up a network share for the documents I want to avoid any IT issues such as the users having to have access to this directory to upload to or access existing documents.

                  有哪些選項可以做到這一點?我想有一個臨時數據庫,以與當前方法相同的方式將文檔上傳到其中,然后在服務器上運行一個進程以將這些文件保存到文件存儲中.然后可以刪除并重新創建該數據庫以回收任何空間.有沒有更好的方法?

                  What are the options available to do this? I thought of having a temporary database where the documents are uploaded to in the same way as the current approach and then a process running on the server to save these to the file store. This database could then be deleted and recreated to reclaim any space. Are there any better approaches?

                  附加信息:我的應用程序沒有網絡服務器元素,所以我認為 WCF 服務是不可能的

                  ADDITIONAL INFO: There is no web server element to my application so I do not think a WCF service is possible

                  推薦答案

                  您是否有理由首先將文件從數據庫中取出?

                  Is there a reason why you want to get the files out of the database in the first place?

                  如何仍然將它們保存在 SQL Server 中,但使用 FILESTREAM 列 而不是 IMAGE?

                  How about still saving them in SQL Server, but using a FILESTREAM column instead of IMAGE?

                  引自鏈接:

                  FILESTREAM 使基于 SQL Server 的應用程序能夠存儲非結構化的文件系統上的數據,例如文檔和圖像.應用可以利用豐富的流 API 和文件的性能同時保持系統之間的事務一致性非結構化數據和相應的結構化數據.

                  FILESTREAM enables SQL Server-based applications to store unstructured data, such as documents and images, on the file system. Applications can leverage the rich streaming APIs and performance of the file system and at the same time maintain transactional consistency between the unstructured data and corresponding structured data.

                  FILESTREAM 將 SQL Server 數據庫引擎與 NTFS 文件集成系統通過將 varbinary(max) 二進制大對象 (BLOB) 數據存儲為文件系統上的文件.Transact-SQL 語句可以插入、更新、查詢、搜索和備份 FILESTREAM 數據.Win32 文件系統接口提供對數據的流式訪問.

                  FILESTREAM integrates the SQL Server Database Engine with an NTFS file system by storing varbinary(max) binary large object (BLOB) data as files on the file system. Transact-SQL statements can insert, update, query, search, and back up FILESTREAM data. Win32 file system interfaces provide streaming access to the data.

                  FILESTREAM 使用 NT 系統緩存來緩存文件數據.這有助于減少 FILESTREAM 數據可能對數據庫引擎產生的任何影響表現.不使用 SQL Server 緩沖池;因此,這內存可用于查詢處理.

                  FILESTREAM uses the NT system cache for caching file data. This helps reduce any effect that FILESTREAM data might have on Database Engine performance. The SQL Server buffer pool is not used; therefore, this memory is available for query processing.

                  這樣你就可以兩全其美:
                  文件將作為文件存儲在硬盤上(可能比將它們存儲在數據庫中更快),但您不必關心文件共享、權限等.

                  So you would get the best out of both worlds:
                  The files would be stored as files on the hard disk (probabl faster compared to storing them in the database), but you don't have to care about file shares, permissions etc.

                  請注意,您至少需要 SQL Server 2008 才能使用 FILESTREAM.

                  Note that you need at least SQL Server 2008 to use FILESTREAM.

                  這篇關于WinForms 應用程序設計——將文檔從 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?)
                  SQL Server 2012 Management Studio for Windows XP(適用于 Windows XP 的 SQL Server 2012 Management Studio)

                    <legend id='gu2nu'><style id='gu2nu'><dir id='gu2nu'><q id='gu2nu'></q></dir></style></legend>

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

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

                      <tbody id='gu2nu'></tbody>
                      • <tfoot id='gu2nu'></tfoot>

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

                          • 主站蜘蛛池模板: 油缸定制-液压油缸厂家-无锡大鸿液压气动成套有限公司 | 头条搜索极速版下载安装免费新版,头条搜索极速版邀请码怎么填写? - 欧远全 | 杭州月嫂技术培训服务公司-催乳师培训中心报名费用-产后康复师培训机构-杭州优贝姆健康管理有限公司 | 焊接烟尘净化器__焊烟除尘设备_打磨工作台_喷漆废气治理设备 -催化燃烧设备 _天津路博蓝天环保科技有限公司 | 冷凝锅炉_燃气锅炉_工业燃气锅炉改造厂家-北京科诺锅炉 | 长沙中央空调维修,中央空调清洗维保,空气能热水工程,价格,公司就找维小保-湖南维小保环保科技有限公司 | 赛默飞Thermo veritiproPCR仪|ProFlex3 x 32PCR系统|Countess3细胞计数仪|371|3111二氧化碳培养箱|Mirco17R|Mirco21R离心机|仟诺生物 | 酒吧霸屏软件_酒吧霸屏系统,酒吧微上墙,夜场霸屏软件,酒吧点歌软件,酒吧互动游戏,酒吧大屏幕软件系统下载 | 裹包机|裹膜机|缠膜机|绕膜机-上海晏陵智能设备有限公司 | 权威废金属|废塑料|废纸|废铜|废钢价格|再生资源回收行情报价中心-中废网 | 99文库_实习生实用的范文资料文库站| SRRC认证_电磁兼容_EMC测试整改_FCC认证_SDOC认证-深圳市环测威检测技术有限公司 | 油漆辅料厂家_阴阳脚线_艺术漆厂家_内外墙涂料施工_乳胶漆专用防霉腻子粉_轻质粉刷石膏-魔法涂涂 | 蔡司三坐标-影像测量机-3D扫描仪-蔡司显微镜-扫描电镜-工业CT-ZEISS授权代理商三本工业测量 | 玻璃钢型材_拉挤模具_玻璃钢拉挤设备——滑县康百思 | 深圳市宏康仪器科技有限公司-模拟高空低压试验箱-高温防爆试验箱-温控短路试验箱【官网】 | 智能监控-安防监控-监控系统安装-弱电工程公司_成都万全电子 | 湖南档案密集架,智能,物证,移动,价格-湖南档案密集架厂家 | 我爱古诗词_古诗词名句赏析学习平台 | 深圳公司注册-工商注册代理-注册公司流程和费用_护航财税 | 黄石妇科医院_黄石东方女子医院_黄石东方妇产医院怎么样 | 液压中心架,数控中心架,自定心中心架-烟台恒阳机电设计有限公司 行星搅拌机,双行星搅拌机,动力混合机,无锡米克斯行星搅拌机生产厂家 | 卡诺亚轻高定官网_卧室系统_整家定制_定制家居_高端定制_全屋定制加盟_定制家具加盟_定制衣柜加盟 | 西点培训学校_法式西点培训班_西点师培训_西点蛋糕培训-广州烘趣西点烘焙培训学院 | 进口消泡剂-道康宁消泡剂-陶氏消泡剂-大洋消泡剂 | 大立教育官网-一级建造师培训-二级建造师培训-造价工程师-安全工程师-监理工程师考试培训 | Eiafans.com_环评爱好者 环评网|环评论坛|环评报告公示网|竣工环保验收公示网|环保验收报告公示网|环保自主验收公示|环评公示网|环保公示网|注册环评工程师|环境影响评价|环评师|规划环评|环评报告|环评考试网|环评论坛 - Powered by Discuz! | 浙江工业冷却塔-菱电冷却塔厂家 - 浙江菱电冷却设备有限公司 | 华东师范大学在职研究生招生网_在职研究生招生联展网 | 碳钢法兰厂家,非标法兰,定制异型,法兰生产厂家-河北九瑞管道 | 咖啡加盟-咖啡店加盟-咖啡西餐厅加盟-塞纳左岸咖啡西餐厅官网 | 挨踢网-大家的导航! | 洁净实验室工程-成都手术室净化-无尘车间装修-四川华锐净化公司-洁净室专业厂家 | 中图网(原中国图书网):网上书店,尾货特色书店,30万种特价书低至2折! | 螺旋绞龙叶片,螺旋输送机厂家,山东螺旋输送机-淄博长江机械制造有限公司 | 软膜天花_软膜灯箱_首选乐创品牌_一站式天花软膜材料供应商! | 厦门网站建设_厦门网站设计_小程序开发_网站制作公司【麦格科技】 | 西安文都考研官网_西安考研辅导班_考研培训机构_西安在职考研培训 | 网站建设-高端品牌网站设计制作一站式定制_杭州APP/微信小程序开发运营-鼎易科技 | 德州网站开发定制-小程序开发制作-APP软件开发-「两山开发」 | 急救箱-应急箱-急救包厂家-北京红立方医疗设备有限公司 |