Please refer to
http://msdn.microsoft.com/en-us/library/ms345133(v=sql.90).aspx on how to add the plug-in algorithm. Then, you could easily create the model based on the algorithm for the database.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?