DECLARE @COUNT AS INT = 1 WHILE @COUNT < 101 BEGIN DECLARE @EmpName as varchar(16) SET @EmpName = 'emp' + CAST (@COUNT AS VARCHAR(100)) INSERT INTO Emp(emp_name)values (@EmpName) SET @COUNT = @COUNT + 1 END
=concatenate( "insert into tablename (empnameCol) values('", A1,"');")
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
Login to post response