SQL Server INSERT … SELECT Statement won't parse

前端 未结 5 1624
生来不讨喜
生来不讨喜 2021-01-14 04:55

I am getting the following error message with SQL Server 2005

Msg 120, Level 15, State 1, Procedure usp_AttributeActivitiesForDateRange, Line 18 The

5条回答
  •  梦谈多话
    2021-01-14 05:28

    you forgot a comma after [Local-User-ID] so it aliased that column as [Activity-Type]

    common mistake

    in essence you have Local-User-ID] AS [Activity-Type], the AS is optional

提交回复
热议问题