SQL Server databases on network shares

Although it is not supported and is not a good idea, on MSSQL it is possible to put database files on network shares. To do that the trace flag 1807 should be opened with the following sql query:


But this will be valid for this session only. to make it valid after every restart of SQL Server it has to be added to the startup parameters as -T1807