I want to store every new created table in an additional file located in the folder "C:\data\".
I think this has something to do with a model database
, but I have less clearity on that. Can anybody suggest me a way to achieve this?
Thanks!!!
I want to store every new created table in an additional file located in the folder "C:\data\".
I think this has something to do with a model database
, but I have less clearity on that. Can anybody suggest me a way to achieve this?
Thanks!!!
Copyright © 2021 Jogjafile Inc.
The answer is to create a FileGroup, and set that FileGroup as the default
Then a simple
CREATE TABLE
will use the new default filegroupwhere-as you can target a specific FileGroup (such as PRIMARY) with the ON keyword:
REF a) https://msdn.microsoft.com/en-us/library/ms174979.aspx b) https://technet.microsoft.com/en-us/library/aa275464(v=sql.80).aspx