I want to specify a specific file or file group for saving a specific table in a database. how can i do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to be more specific. You can determine the data files that are available in a database by saying:
And you can see the filegroups here:
But how you qualitatively pick one for creating as the destination for a new table?
<shrug>– depends on how you want to decide, which we don’t know. You can determine a little more qualitative information using this join:Which will show you the files in each filegroup, their state/location/size and will show when you have unused filegroups as well (all the file columns will be NULL for those rows). So these details may help you determine which filegroup to specify.
When you’ve decided which filegroup to use, you can say:
You can see the full syntax for
CREATE TABLEhere. You didn’t specify the version so you may have to pick the appropriate selection from the “Other versions” drop-down.