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>

                          • 主站蜘蛛池模板: 反渗透阻垢剂-缓蚀阻垢剂厂家-循环水处理药剂-山东鲁东环保科技有限公司 | 防锈油-助焊剂-光学玻璃清洗剂-贝塔防锈油生产厂家 | 南方珠江-南方一线电缆-南方珠江科技电缆-南方珠江科技有限公司 南汇8424西瓜_南汇玉菇甜瓜-南汇水蜜桃价格 | 月嫂_保姆_育婴_催乳_母婴护理_产后康复_养老护理-吉祥到家家政 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | 固诺家居-全屋定制十大品牌_整体衣柜木门橱柜招商加盟 | 塑料检查井_双扣聚氯乙烯增强管_双壁波纹管-河南中盈塑料制品有限公司 | 接地电阻测试仪[厂家直销]_电缆故障测试仪[精准定位]_耐压测试仪-武汉南电至诚电力设备 | 东莞螺丝|东莞螺丝厂|东莞不锈钢螺丝|东莞组合螺丝|东莞精密螺丝厂家-东莞利浩五金专业紧固件厂家 | 菲希尔X射线测厚仪-菲希尔库伦法测厚仪-无锡骏展仪器有限责任公司 | sus630/303cu不锈钢棒,440C/430F/17-4ph不锈钢研磨棒-江苏德镍金属科技有限公司 | 快干水泥|桥梁伸缩缝止水胶|伸缩缝装置生产厂家-广东广航交通科技有限公司 | TPE塑胶原料-PPA|杜邦pom工程塑料、PPSU|PCTG材料、PC/PBT价格-悦诚塑胶 | 食药成分检测_调料配方还原_洗涤剂化学成分分析_饲料_百检信息科技有限公司 | 滚塑PE壳体-PE塑料浮球-警示PE浮筒-宁波君益塑业有限公司 | 聚氨酯保温钢管_聚氨酯直埋保温管道_聚氨酯发泡保温管厂家-沧州万荣防腐保温管道有限公司 | 广东护栏厂家-广州护栏网厂家-广东省安麦斯交通设施有限公司 | 冷却塔改造厂家_不锈钢冷却塔_玻璃钢冷却塔改造维修-广东特菱节能空调设备有限公司 | 专业生产动态配料系统_饲料配料系统_化肥配料系统等配料系统-郑州鑫晟重工机械有限公司 | 天助网 - 中小企业全网推广平台_生态整合营销知名服务商_天助网采购优选 | 有福网(yofus.com)洗照片冲印,毕业聚会纪念册相册制作个性DIY平台 | 首页 - 军军小站|张军博客| 臭氧发生器_臭氧消毒机 - 【同林品牌 实力厂家】| 河北码上网络科技|邯郸小程序开发|邯郸微信开发|邯郸网站建设 | SDG吸附剂,SDG酸气吸附剂,干式酸性气体吸收剂生产厂家,超过20年生产使用经验。 - 富莱尔环保设备公司(原名天津市武清县环保设备厂) | 作文导航网_作文之家_满分作文_优秀作文_作文大全_作文素材_最新作文分享发布平台 | 3D全息投影_地面互动投影_360度立体投影_水幕灯光秀 | 广东银虎 蜂窝块状沸石分子筛-吸附脱硫分子筛-萍乡市捷龙环保科技有限公司 | 武汉印刷厂-不干胶标签印刷厂-武汉不干胶印刷-武汉标签印刷厂-武汉标签制作 - 善进特种标签印刷厂 | 合肥白癜风医院_[治疗白癜风]哪家好_合肥北大白癜风医院 | 一技任务网_有一技之长,就来技术任务网| 窖井盖锯圆机_锯圆机金刚石锯片-无锡茂达金刚石有限公司 | 合同书格式和范文_合同书样本模板_电子版合同,找范文吧 | 磁力抛光研磨机_超声波清洗机厂家_去毛刺设备-中锐达数控 | 顺辉瓷砖-大国品牌-中国顺辉| 双效节能浓缩器-热回流提取浓缩机组-温州市利宏机械 | 变位机,焊接变位机,焊接变位器,小型变位机,小型焊接变位机-济南上弘机电设备有限公司 | 桁架机器人_桁架机械手_上下料机械手_数控车床机械手-苏州清智科技装备制造有限公司 | 砍排机-锯骨机-冻肉切丁机-熟肉切片机-预制菜生产线一站式服务厂商 - 广州市祥九瑞盈机械设备有限公司 | 志高装潢官网-苏州老房旧房装修改造-二手房装修翻新 | 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | 精益专家 - 设备管理软件|HSE管理系统|设备管理系统|EHS安全管理系统 | vr安全体验馆|交通安全|工地安全|禁毒|消防|安全教育体验馆|安全体验教室-贝森德(深圳)科技 |