Manage Learn to apply best practices and optimize your operations.

Reset local DB quota

This tip describes resetting the local DB quota.

View member feedback to this tip.

If you have a remote user who has a quota set on his/her local mail database and it needs to be removed, send him/her an email with a button containing the code below. When they click the button, the quota is reset. Or, if you need to set the quota, just change the 0 in the db.sizequota= line to the number of kilobytes required. It is a big help when the user is located across the country or the globe.


Sub Click(Source As Button)
 Dim session As New NotesSession
 Dim db As NotesDatabase
 Dim dbsizequota As Long
 Set db = session.CurrentDatabase
 db.sizequota = 0
 Messagebox "Quota Removed!"
End Sub
  
 

MEMBER FEEDBACK TO THIS TIP

The code for removing DB quota has a variable DBsizequota that is not used. I want to know what the purpose is of declaring this variable?

Code:

 Sub Click(Source As Button) Dim session As 
New NotesSession Dim db As NotesDatabase
 Dim dbsizequota As Long Set db = 
session.CurrentDatabase db.sizequota = 0 
Messagebox "Quota Removed!" End Sub
-- Al S.

**********************************************

To answer the question of the unused DBSizeQuota variable, it was used in a previous version of the code for testing purposes. It has no use in this example of the script.

Thanks,
Shawn Tullier


Do you have comments of your own? Let us know.

Dig Deeper on LotusScript

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close