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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Set Table ReadOnly

Author  Topic 

sasan_vm
Yak Posting Veteran

51 Posts

Posted - 2010-02-19 : 16:26:15
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

1421 Posts

Posted - 2010-02-19 : 21:18:46
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 - 2010-02-19 : 21:35:35
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

5072 Posts

Posted - 2010-02-22 : 13:04:24
or put a trigger on it
Go to Top of Page
   

- Advertisement -