- Enable Database Mail feature via Surface Area Configuration for Features.
- In SSMS, Use Database Mail Configuratin Wizard to create account and profile.
- Select a default profile.
- Create Operator.
- If you would use Alert to notifiy operator, enable Mail Profile in Alert system option of SQL Server Agent.
- Restart the SQL Server Agent.
- You are ready to use Database Mail to notify the operator now.
Tuesday, February 23, 2010
SQL 2005 : Database Mail Setup
ASP.NET Page Events Lifecycle
This is for my own reference purpose. The The original info comes from : http://weblogs.asp.net/ricardoperes/archive/2009/03/08/asp-net-page-events-lifecycle.aspx
When using master pages, the normal page event lifecycle is a little different. Here is the actual order:
- Page.OnPreInit
- MasterPageControl.OnInit (for each control on the master page)
- Control.OnInit (for each contol on the page)
- MasterPage.OnInit
- Page.OnInit
- Page.OnInitComplete
- Page.LoadPageStateFromPersistenceMedium
- Page.LoadViewState
- MasterPage.LoadViewState
- Page.OnPreLoad
- Page.OnLoad
- MasterPage.OnLoad
- MasterPageControl.OnLoad (for each control on the master page)
- Control.OnLoad (for each control on the page)
- OnXXX (control event)
- MasterPage.OnBubbleEvent
- Page.OnBubbleEvent
- Page.OnLoadComplete
- Page.OnPreRender
- MasterPage.OnPreRender
- MasterPageControl.OnPreRender (for each control on the master page)
- Control.OnPreRender (for each control on the page)
- Page.OnPreRenderComplete
- MasterPageControl.SaveControlState (for each control on the master page)
- Control.SaveControlState (for each control on the page)
- Page.SaveViewState
- MasterPage.SaveViewState
- Page.SavePageStateToPersistenceMedium
- Page.OnSaveStateComplete
- MasterPageControl.OnUnload (for each control on the master page)
- Control.OnUnload (for each control on the page)
- MasterPage.OnUnload
- Page.OnUnload
Friday, February 19, 2010
Steps to install dotProject
Add "dp_user" user to the MySQL.
1) Install Apache web server.
2) Install PHP to your web server.
PHP should support GD and MySQL
3) Install MySQL.
4) Add "dp_user" user to the MySQL.
5) Create a schema (Database) "dotproject" and assign user "dp_user" has full permission of this DB.
6) Copy all dotProject files to the htdocs folder.
- Open browser to access http://Your Domain/dotProject/install/index.php
- follow the step to complete the installation.
7) The default admin login is :
User Id : admin
Password : passwd
1) Install Apache web server.
2) Install PHP to your web server.
PHP should support GD and MySQL
3) Install MySQL.
4) Add "dp_user" user to the MySQL.
5) Create a schema (Database) "dotproject" and assign user "dp_user" has full permission of this DB.
6) Copy all dotProject files to the htdocs folder.
- Open browser to access http://Your Domain/dotProject/install/index.php
- follow the step to complete the installation.
7) The default admin login is :
User Id : admin
Password : passwd
Prepare SQL 2005 to use CLR
1) Turn on the 'clr enabled" feature of your server.
sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO
2) Turn on the Trustworthy property of your database if your clr assembly require access external resources.
ALTER DATABASE [DB Name]
SET TRUSTWORTHY ON
sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO
2) Turn on the Trustworthy property of your database if your clr assembly require access external resources.
ALTER DATABASE [DB Name]
SET TRUSTWORTHY ON
Subscribe to:
Posts (Atom)