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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Set Table ReadOnly
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sasan_vm
Yak Posting Veteran

51 Posts

Posted - 02/19/2010 :  16:26:15  Show Profile  Reply with Quote
Hello,
I create a table for any year in db and on new year i want set old year table to readonly , infact user cant modify data (insert, update, delete)
How can do it ?

Kind Regards,
sasan.

mfemenel
Professor Frink

USA
1421 Posts

Posted - 02/19/2010 :  21:18:46  Show Profile  Visit mfemenel's Homepage  Reply with Quote
Create a new file group and mark it read only. Move the old year table to that file group.

Mike
"oh, that monkey is going to pay"
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 02/19/2010 :  21:35:35  Show Profile  Reply with Quote
I Guess.

Or create a partitioned view, and move the data to separate table and grant those tables as R/O????



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 02/22/2010 :  13:04:24  Show Profile  Visit russell's Homepage  Reply with Quote
or put a trigger on it
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000