Adrien,
Thanks for the hint! ...So, I mounted a mirror drive Z: onto my c:\hristo_test\mirror folder, with the /o option, as you suggested:
Unmount the drive with CTRL + C in the console or alternatively via "dokanctl /u MountPoint".
PS C:\Program Files\Dokan\DokanLibrary-1.3.0> .\mirror.exe /r c:\hristo_test\mirror /o /l Z:
Next, I created a Z:\DATA folder with no issues, but when I tried to create a MS SQL database in Z:\DATA with SQL Server Management Studio by executing this script:
USE master;
GO
drop database Solutions
GO
CREATE DATABASE Solutions
ON
( NAME = Solutions_dat,
FILENAME = 'z:\data\Solutionsdat.mdf',
SIZE = 10MB,
MAXSIZE = 50MB,
FILEGROWTH = 5MB )
LOG ON
( NAME = Solutions_log,
FILENAME = 'z:data\Solutionslog.ldf',
SIZE = 5MB,
MAXSIZE = 25MB,
FILEGROWTH = 5MB );
GO
I get the below error. I tried to set permissions, etc., but could not get rid of this error:
Msg 3701, Level 11, State 1, Line 3
Cannot drop the database 'Solutions', because it does not exist or you do not have permission.
Msg 5123, Level 16, State 1, Line 5
CREATE FILE encountered operating system error 1307(This security ID may not be assigned as the owner of this object.) while attempting to open or create the physical file 'z:\data\Solutionsdat.mdf'.
Msg 1802, Level 16, State 4, Line 5
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
Please advise.
Note that this happens only with the Dokany drive Z: - any of the normal hard disk drives on my machine worked fine with the above steps.
This can be easily reproduced if you download SQL Server Express (FREE from Microsoft) and repeat my steps.
I used Windows 2012 server for th etests.