Hi Safinnator,
According to your description, if you want to insert the same data many times in one table, I recommend you can use an temple table, you can refer to the following T-SQL statement.
create table #Person(name varchar(20) not null)insert into #Person(name)values('Tom')go 5
Or If you do not want to use a stored procedure /CTE, you can try using the following method.
CREATE TABLE InsertedTable(
ID int IDENTITY (1,1)PRIMARY Key,col1 varchar(20),col2 varchar(20),col3 varchar(20))
insert into InsertedTable (col1,col2,col3)
select 'a','b','c'
from (select row_number() over (order by object_id, column_id)seq
from sys.columns) awhere a.seq <= 5
SELECT * FROM InsertedTable
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support
