问题标签 [filetable]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
262 浏览

sql-server-2012 - sqlserver 的自定义 ifilter 仅适用于第一个文件

我为新扩展 (.abc) 创建了一个自定义 ifilter。
当我将它安装在操作系统中时,搜索效果很好。
当我尝试在 sqlserver 2012 中对文件表的全文索引使用它时,我看到只有一个文件被正确索引。
我试图在 fdhost.exe 上调试附加调试的索引任务。我看到我的类被实例化和销毁的次数与表中的文件 .abc 完全相同,但只是我第一次看到对 IPersistFile::Load、IFilter::Init、IFilter:GetChunk、IFilter::GetText 的调用,下次我的班级只调用构造函数和析构函数。
此外,在下次调用构造函数后,我在 Visual Studio 2012 的输出窗口中看到一个异常:
fdhost.exe 中 0x000007fefd44a49d 处的第一次机会异常:Microsoft C++ 异常:内存位置 0x01022c30 处的 CNLBaseException。

我没有找到有关此错误和 fdhost 行为的任何文档,以便了解错误在哪里。

谢谢你的答案。
路易吉

0 投票
0 回答
263 浏览

.net - 使用 SQL Server 2012 FileTable 中的 iis 7.5 提供静态内容

我整天都在与这个问题作斗争,但没有成功。我有以下配置:

  1. Windows Server 2008 R2 标准版
  2. SQL Server 2012 企业版

我配置了该FILESTREAM功能并创建了一个文件表。我可以通过文件共享访问它并添加文件。我添加了一个指向文件共享的虚拟目录,并将其设置为作为 Windows 管理员和数据库管理员的用户进行连接。我还将此用户设置为用于匿名访问和网站的应用程序池。我可以通过 IIS 管理控制台访问文件共享中的所有文件夹和文件,但是每当我尝试在浏览器中浏览某些内容时,我都会收到 404 错误。

感谢您的任何想法。

0 投票
1 回答
1425 浏览

sql - 如何使用 SqlFileStream 对 SQL Server 2012 FileTable 进行事务访问?

我正在尝试使用 WCF 服务中的 SqlFileStream 对象来获取 SQL Server 2012 FileTable 中特定文件的句柄。使用这段代码,我可以毫无问题地获得路径和事务上下文:

但是,一旦我尝试并实际使用路径和事务上下文来创建一个新的 SqlFileStream:

上面有以下异常:挂载的文件系统不支持扩展属性。

有人可以向我解释我在这里做错了什么吗?

谢谢!

0 投票
1 回答
5228 浏览

sql-server-2012 - SQL Server 2012 FileTable- is a file stored IN the database?

If I create a FileTable in SQL server 2012, and then was to drop a 4G file onto the NT filesystem (that was in the filestream), would that entire 4G file be read into the table's filestream column?

Is SQL in fact making a COPY of my 4G file? Or does the filestream column represent a pointer to my 4G file, which it begins to read on a query?

Im just trying to figure out if I added 100G of data to my file system, would that add 100G of data size to my DB.

Can someone help explain how this works? And even better point me to some docs with more detail than the MS/MSDN 'how-to' stuff?

EDIT: It's interesting- if I drop a 1G file in the FT dir, and then do a select the file_stream column contains all the data for that file (I think). But if I do sp_spaceused FileTableTb before and after dropping in that file the table size does not change. Perhaps this is evidence that the select opens the stream to the file and reads it in, but other than that the data is NOT stored in the table?

0 投票
1 回答
532 浏览

sql-server - 文件表 sqlserver 的物理文件名

我正在为我的扩展(我们可以称之为“abc”)为 sqlserver 创建一个自定义 IFilter。abc 文件是通用加密文件,最初具有不同的扩展名并记录在 sqlserver 文件表中。当我将文件复制到我的文件表中时,我对文件进行加密,我在 abc 中更改扩展名,并将原始扩展名记录在同一个 db 的另一个表中。当我的 IFilter 启动时,它会收到一个扩展名为 abc 的文件,但他的名字是由 sqlserver 创建的,并且它与存储在 filetable 中的文件的名称没有任何联系。如果我可以从该名称中检索文件表中的记录,那么我的问题将得到解决。

在此先感谢路易吉

0 投票
2 回答
1123 浏览

sql-server - create a file system group pointing at a SAN

I am working with creating a FileTable in sql server 2012. I want to store the files on a SAN (Storage Area Network). I have mapped it to a drive on sql server.

To use the FileTable, I need to set up a file system group. I am using the following script but failing to get it correct:

The entry I have for the FileName always seems to fail. How can I set up a FileStreamGroup to point at SAN and which in turn I will use to create a file table from it?

0 投票
1 回答
1812 浏览

sql - 通过 SQL Contains 命令查找整句

使用命令在存储在文件表中的文件中搜索整个句子CONTAINS

例如,如果用户输入“SQL Server”句子,我想搜索只包含“SQL Server”而不是“SQL SOME TEXT Server”的文件

我收到以下错误:全文搜索条件“SQL Server”中“服务器”附近的语法错误

然后我试试这个:

但这也返回了包含“SQL SOME TEXT Server”的文件。

我该如何纠正?

0 投票
0 回答
309 浏览

c# - 如何在word 2010+中隐藏/禁用文件选项卡(也称为后台视图)

我正在开发一个 web-word 控件,旨在打开网页中的单词以进行编辑或保存......我发现在 word 2010+ 中有一个名为 file tab(left/top) 的选项卡,它将打开一个新窗口包含许多功能,但我不需要它在我的控件中,尤其是关闭按钮(右/上)。所以我想隐藏/禁用文件选项卡。当我在网上搜索时,我找不到任何解决方案,就像他们说的那样,微软没有为我们提供禁用这个特殊选项卡的接口。但我认为必须有一些方法来解决它,因为当我打开单词时文件选项卡是隐藏的eclipse

0 投票
1 回答
4218 浏览

sql - Filestream 共享文件夹权限问题

我正在尝试将文件从桌面拖放到用于文件流文件的本地 MSSQLSERVER 共享文件夹/目录中。每次这样做时,我都会收到以下 Windows 错误 - “您需要权限才能执行此操作。”

我觉得我已经尝试了一切来解决这个问题,从将用户和组添加到共享的权限列表(并授予完全访问权限)——一直到调整 SQL Server 中的权限设置(用于数据库和单个文件表)。

我的本地 MSSQLServer 服务作为网络帐户登录,我正在尝试使用我的 Windows 身份验证帐户进行拖放。我已经尝试修改服务,以便它通过 Windows auth 帐户登录,重新启动,但仍然没有运气。

有什么想法吗?

谢谢

0 投票
3 回答
6153 浏览

sql-server - Microsoft Azure SQL Server 可以使用 FileTable / Blob 存储吗?

背景/问题

我正在尝试按照以下方式做一些事情,但找不到它的记录:

  • SQL Azure 数据库(不是 VM)
  • 将它连接到一些(blob)存储
  • 利用 FileTables 将文件存储到 db/filesystem

澄清:粗略的架构

这就是我的想法:

问题

这种设置是否可行,如果不可行,为什么不呢?

我一直在到处寻找,但没有实际支付 Windows Azure 帐户的费用,很难提前找到。