Use SQL INSERT to Create Directories with FileTable

谁说我不能喝 提交于 2019-12-05 00:57:58

问题


Is there a way to create directories in a FileTable without using File I/O APIs? Is it just as simple as creating a SQL INSERT statement?

This is my first experience with SQL Server 2012 and I'm not familiar with the limits of the FileTable from within SQL Server.


回答1:


The following worked for me. Hopefully this helps out someone else.

INSERT INTO FileTable0 (name,is_directory,is_archive) VALUES ('Directory', 1, 0);
  • You should also check out Bob Beauchemin's Techdays 2012 video for more details on FileStream and its evolution into FileTable.


来源:https://stackoverflow.com/questions/10483906/use-sql-insert-to-create-directories-with-filetable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!