问题
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 intoFileTable
.
来源:https://stackoverflow.com/questions/10483906/use-sql-insert-to-create-directories-with-filetable