- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
SQL Server存储BLOB(国外英文资料)
SQL Server存储BLOB(国外英文资料)
What is a BLOB
First, lets compare two types of file types, ASCII and binary. Most data values stored in SQL Server are made up of ASCII (U.S. information exchange standard code) characters. In short, ASCII characters are letters, Numbers, and symbols that can be found on a computer keyboard. We can make changes to files that contain only ASCII characters in the text editor, such as notepad, and will not cause any damage to the file. The binary file contains not only ASCII characters but also special control characters and byte combinations on the keyboard. If you use notepad to open an MP3 file, and delete some of the characters in an attempt to make the song short and is likely to destroy the entire file, cause the MP3 cant normal play, this is because the notepad can only be used to edit the ASCII characters, and unable to properly interpret or create a binary. Other binary data includes images and executable assembly programs. A BLOB is, by definition, a large binary file.
Why do you store blobs in SQL Server
Some people like to store binary objects in SQL server databases, and there are people who object to doing so. We should be considerate in both ways. For example, lets say that we are a database administrator in a typical sales enterprise. The enterprises usually have a lot of product for sale, contains different categories of products, product line and below the level is the individual products or components, we call them artifacts. For each artifact, a standard detailed inventory list is provided, such as price, cost, existing quantity, vendor, and so on. In addition, many components could be used to describe the component sales manual or brochure, they are often brochures in PDF, slide or some type of image appears in the form of electronic document, etc. One way to handle these electronic documents is to put them all into a file server and create a directory for each component. This may work at first, but when customers or empl
文档评论(0)