Showing posts with label tempdb. Show all posts
Showing posts with label tempdb. Show all posts

Thursday, March 29, 2012

DBCC ShrinkFile

How long does it take to execute DBCC Shrinkfile(DB_FILE, emptyfile) on a 10GB datafiles? If you put your datafiles together with the tempdb datafiles on the same logical drive do we have a performance issue?

Thanks

The time taken for this activity is depends.

THe other part of ur question, Temp db should always be in seperate physical drive if possible for better performance. Datafile is Random read/write but temp db will have moreor less sequential read./write. So if u keep both in same drive it will have performance hit

http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/tempdb_capacity_planning_index.mspx

http://msdn2.microsoft.com/en-us/library/ms345368.aspx

Madhu

Tuesday, February 14, 2012

dbcc checkdb

Hi
Should I be using DBCC CHECKDB on tempdb for SQL 7 and 2K?
TIA
JasonHi Jason,
You can, but I would not worry about it as the tempdb is
designed to hold temporary stuff which is then removed
from the db.
So there is nothing stopping you, but there is no need.
Peter
>--Original Message--
>Hi
>Should I be using DBCC CHECKDB on tempdb for SQL 7 and 2K?
>TIA
>Jason
>
>.
>|||Thanks Peter
I do usually perform this maintenance check on the database. I've started to
receive 8906 errors and the solution is to put the database into single user
mode and use the repair parameter, however, tempdb cannot be put into single
user mode. I've not come across this before.
Cheers
Jason
"Peter" <nospam@.thisemailaddress.co.uk> wrote in message
news:0ee401c3618a$3292f9e0$a101280a@.phx.gbl...
> Hi Jason,
> You can, but I would not worry about it as the tempdb is
> designed to hold temporary stuff which is then removed
> from the db.
> So there is nothing stopping you, but there is no need.
> Peter
>
> >--Original Message--
> >Hi
> >
> >Should I be using DBCC CHECKDB on tempdb for SQL 7 and 2K?
> >
> >TIA
> >
> >Jason
> >
> >
> >.
> >|||I see what you mean.
All I can think of one possible solution which would be to
shrink the data / log file and see if that clears out the
problem.
Peter
>--Original Message--
>Thanks Peter
>I do usually perform this maintenance check on the
database. I've started to
>receive 8906 errors and the solution is to put the
database into single user
>mode and use the repair parameter, however, tempdb cannot
be put into single
>user mode. I've not come across this before.
>Cheers
>Jason
>
>"Peter" <nospam@.thisemailaddress.co.uk> wrote in message
>news:0ee401c3618a$3292f9e0$a101280a@.phx.gbl...
>> Hi Jason,
>> You can, but I would not worry about it as the tempdb is
>> designed to hold temporary stuff which is then removed
>> from the db.
>> So there is nothing stopping you, but there is no need.
>> Peter
>>
>> >--Original Message--
>> >Hi
>> >
>> >Should I be using DBCC CHECKDB on tempdb for SQL 7 and
2K?
>> >
>> >TIA
>> >
>> >Jason
>> >
>> >
>> >.
>> >
>
>.
>|||Thanks for your reply Peter
I'll try that later. I have had this problem before and it went away after 2
days, so I'm a bit confused
Cheers
Jason
"Peter" <nospam@.thisemailaddress.co.uk> wrote in message
news:107201c3619a$91b0d950$a101280a@.phx.gbl...
> I see what you mean.
> All I can think of one possible solution which would be to
> shrink the data / log file and see if that clears out the
> problem.
> Peter
>
> >--Original Message--
> >Thanks Peter
> >
> >I do usually perform this maintenance check on the
> database. I've started to
> >receive 8906 errors and the solution is to put the
> database into single user
> >mode and use the repair parameter, however, tempdb cannot
> be put into single
> >user mode. I've not come across this before.
> >
> >Cheers
> >
> >Jason
> >
> >
> >
> >"Peter" <nospam@.thisemailaddress.co.uk> wrote in message
> >news:0ee401c3618a$3292f9e0$a101280a@.phx.gbl...
> >> Hi Jason,
> >>
> >> You can, but I would not worry about it as the tempdb is
> >> designed to hold temporary stuff which is then removed
> >> from the db.
> >>
> >> So there is nothing stopping you, but there is no need.
> >>
> >> Peter
> >>
> >>
> >> >--Original Message--
> >> >Hi
> >> >
> >> >Should I be using DBCC CHECKDB on tempdb for SQL 7 and
> 2K?
> >> >
> >> >TIA
> >> >
> >> >Jason
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >|||Hi Jason,
What version of SQL Server are you using? If you are on SQL Server 7.0,
make sure you have latest service pack.
I did a quick search on any known issue. I found one. (Not saying that you
are hitting this however)
FIX: Attentions During Nonlogged Allocations in Tempdb Can Result in ID:
278363.KB.EN-US
http://support.microsoft.com/?id=278363
Sincerely,
Yih-Yoon Lee [Microsoft]
Microsoft SQL Server Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.