The Microsoft SQL Server 2008 Feature Pack (link to April 2009 version) contains tools and libraries for SQL Server 2008, among them the latest version of SQL Server Management Objects (SMO) which support 2000, 2005, and 2008.
SMO is the technology used by my applications SMOscript and automssqlbackup to query and control SQL Server databases.