Re: Empty QVD files are growing in size if generated in the loop
Not sure at what step you get the problem. I ran your script and I see just 3kb qvd file, I executed script again and again and don't see any size change etc. Let me know what I am missing in attached qvf.
One way size could have grown if it doesn't have statement "Drop Table Cycle_QVD_TEST;", But its there in your sample so it won't concatenate with the previous file.