Cannot insert NULL values into column 'USERNAME', table 'tempdb.dbo.#temptable error
问题 I have a SP. while executing I am getting error as Cannot insert the value NULL into column 'USERNAME', table 'tempdb.dbo.#temptable__________________________________________________________________________________________________________0000000002FD'; column does not allow nulls. UPDATE fails. The statement has been terminated. Below is my SP ALTER PROCEDURE [dbo].[UserReportData] @As_ONDATE Datetime AS BEGIN DECLARE @REPORTDATE datetime DECLARE @USERNAME varchar(110) Select * INTO