它表示该命令已成功执行,但组织表中没有插入任何值。
DECLARE @now DATETIME
SET @now = GETDATE()
DECLARE @numtoinsert INT
SET @numtoinsert = 100
DECLARE @counter INT
SET @counter = 101
WHILE @counter < @numtoinsert
BEGIN
SET @counter = @counter + 1
INSERT INTO [MVServices].[dbo].[Organization]
([Organization_Id]
,[Business_Number]
,[Legal_Name]
,[Common_Name]
,[Operating_As]
,[Sort_Name]
,[Effective_Date]
,[Expiry_Date]
,[Created_By]
,[Created_Date]
,[Last_Changed_By]
,[Update_Date])
VALUES
(@counter
,1234
,'ABC Construction'
,'ABC'
,'ABC Construction'
,'ABC Construction'
,@now
,null
,'seed'
,@now
,null
,null)
END