I have a SQL Server Table that has a column with a number in it. Is there a way that I can query that table to find out what the number is and copy the rows that number of times in a new table.
Do you want to
1) read the value from a single column and a single row and take that value and add that many number of rows to a table.
2) Count the number of rows and then add that same amount of rows to a new table or (your asking for trouble) at it to the same table (this would exponentialy grow the size of your table).
for number 2
just do this
while recordsetname <> null
cn.execute(insert statement)
recordsetname.movenext
wend
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.