Shrink Temp Database

Hi,

Currently i am running below mentioned insert statment in one of my user database.The destination table is partioned table & it contains 2 indexes (one clustered and one non-clustred).

Insert into table_1
select * from table_2

The problem is: tempdb log file size is growing very high. So i am planning to  shrink log file (same time that is insert statment is executing, alternatively i am planning to shrink log file).

by performing to transactions at same, is there any impact on my source/destination tables.

The reason is tempdb is located in seprate drive (the size is very low).

So i am planning to shrink tempdb log file.

please let me know
1. is there any impact on source/destination table?
2. is there any impact on tempdb?
srinivas_ganamurAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
there can be some performance hit, otherthan that nothing
0
pcelbaCommented:
If the tempdb database is growing due to the insert command then it will be impossible to shrink it at the same time. Same is valid for log file. You should rather divide the insert into several smaller parts.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
srinivas_ganamurAuthor Commented:
--
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.