Use SQL INSERT to Create Directories with FileTabl

2020-06-23 06:05发布

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条回答
我命由我不由天
2楼-- · 2020-06-23 06:40

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

INSERT INTO FileTable0 (name,is_directory,is_archive) VALUES ('Directory', 1, 0);
查看更多
登录 后发表回答