Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 To Insert rows into a Compressed table..

Author  Topic 

SqlStunner
Starting Member

1 Post

Posted - 2012-07-23 : 19:09:40

Hello,

I compressed a table XYZ in Sql Server 2008. Now i need to insert some thousands of rows from another table ABC into XYZ.

Insert into XYZ
select * from ABC.

As the table is compressed, the rows which we are inserting will be non compressed.

How to insert rows with compressed state.

Please reply.

Thanks,
SK

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-23 : 19:26:34
The rows will become compressed during the insert.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -