sql server - Splitting a huge table to small tables -


i have table in microsoft sql server 2008 r2 has 100,000 records .

i need split 10 tables each 10k records .i don't want partition table ,but split entirely 10 different tables .is possible ?

you can use ntile

;with cte ( select ntile(10) on (order somepk column) somecol ,* table  ) select * cte n=1--change n value each partition 

Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -