SQL Server 管理对象 (SMO) http://technet.microsoft.com/zh-cn/library/ms162169(v=sql.105).aspx http://www.codesmithtools.com/