Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Associate user's new objects with data file

Author  Topic 

suncounty
Starting Member

1 Post

Posted - 2007-04-20 : 12:38:15

I'm currently running SQL Server 2005, and have been exploring the feasibility of grouping users to use a default file group and data file. This would be to group a set of users to have their new tables reside in a specific data file. I only see mechanisms for moving an already existing objects into a file group or to set the entire databases default file group--not a user level association or dynamic assignment of the default for that user, script, etc.

It's not looking good.

I'm looking for confimration that it's not possible or leads on doing so.

Thanx in advance

nr
SQLTeam MVY

12543 Posts

Posted - 2007-04-22 : 10:28:00
You could matbe create a ddl trigger to do it.
You can't have an instead of trigger but maybe you could move the object just created to the correct filegroup.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -