I have one database that gets a million rows added to it on a daily basis. Every day I'd like to run a query to pull out the million oldest rows(leaving about ten million in the database), and then move them into an archive database.
There are well documented ways of doing this with sql server(bcp, openrowset, etc), but from what I can tell, all of those methods take all of the rows from a data file. I only want to copy a subset of the rows, and I can't find any quick ways of doing that.