restoring database excluding a specific table and records in the table

I do backup a database from sql 2008 and restore to a testing server daily. Recently the database grows too fast due to history records of two particular tables in it which I don't need.
Can you provide sql codes or through management studio how to schedule to restore from backup file excluding  the two tables?
LVL 1
crcsupportAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ZberteocConnect With a Mentor Commented:
One thing you can do is to replicate the database to the test server in which case you can specify what tables and even what columns you want to replicate. Use transnational replication. You can exclude whatever you want. This way your database on the test server  will be permanently in sync with your source database and you don't need to to restores anymore.

Setup transnational replication: http://www.youtube.com/watch?v=sbrUtfkkVUE
0
 
Scott PletcherConnect With a Mentor Senior DBACommented:
SQL Server doesn't have that option or capability, unless those tables happen to be in separate filegroup(s).
0
All Courses

From novice to tech pro — start learning today.