SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Associate user's new objects with data file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

suncounty
Starting Member

USA
1 Posts

Posted - 04/20/2007 :  12:38:15  Show Profile  Reply with Quote

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

United Kingdom
12543 Posts

Posted - 04/22/2007 :  10:28:00  Show Profile  Visit nr's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000