//http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx private void Rename(string oldName, string newName, string type) { IPooledDbConnection conn = connectionPool.Request(); IDbCommand command = conn.CreateStoredProcedure( String.Format("EXEC sp_rename '{0}', '{1}', '{2}'", oldName, newName, type) ); try { using (command) command.ExecuteNonQuery(); } catch (Exception e) { QueryService.RaiseException(e); } conn.Release(); }