本文转自 http://sqlblog.com/blogs/andy_leonard/archive/2007/07/09/ssis-design-pattern-incremental-loads.aspx Andy Leonard Andy Leonard is CSO of Linchpin People and SQLPeople, an SSIS Trainer, Consultant, and developer; SQL Server database and data wareh…
select distinct stu.*, dbo.GetClassNameByStudentCode(stu.Code) as ClassName, dbo.GetCourseNameByStudentCode(stu.Code) as CourseName, dbo.GetLinkmanByStudentId(stu.Id) as Linkman, dbo.GetContactByStudentId(stu.Id) as Contact, case when svr.Linkman is…