Populating a Datetime Column
问题 I want to populate a datetime column on the fly within a stored procedure. below is the query that I currently have that does same but slows down query performance. CREATE TABLE #TaxVal ( ID INT , PaidDate DATETIME , CustID INT , CompID INT ) INSERT INTO #TaxVal(ID, PaidDate, CustID, CompID) VALUES(01, '20150201',12, 100) , (03,'20150301', 18,101) , (10,'20150401',19,22) , (17,'20150401',02,11) , (11,'20150411',18,201) , (78,'20150421',18,299) , (133,'20150407',18,101) -- SELECT * FROM