Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Administration
»
TempDB
TempDB
Rate Topic
Display Mode
Topic Options
Author
Message
pedro.ribeiro
pedro.ribeiro
Posted Wednesday, April 01, 2009 8:56 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Sunday, May 31, 2009 10:19 AM
Points: 103,
Visits: 982
Hi masters,
I'm thinking in putting some staging tables on tempdb.
This are empty tables that receive some data from a bulk insert and then i make same validations to this data and insert it on my real tables on my user databases.
I have some question about tempdb, maybe you can help me.
1) TempDB is all reconstructed every time the server (SQL Server) Starts, correct?
2) If the answer to the first question, is yes, this means that the stating tables that i have created the last time on tempdb , now (that the server restarted) are lost and i have to create them again. Correct?
Do you know if you lose perfomance when inserting (from a bulk_insert) data to a staging table on a tempdb Vs on a staging table in a user db?
tks,
Pedro
Post #688031
maechismo_8514
maechismo_8514
Posted Wednesday, April 01, 2009 9:16 AM
Ten Centuries
Group: General Forum Members
Last Login: Friday, August 24, 2012 8:11 AM
Points: 1,097,
Visits: 2,157
pedro.ribeiro (4/1/2009)
1) TempDB is all reconstructed every time the server (SQL Server) Starts, correct?
Correct
2) If the answer to the first question, is yes, this means that the stating tables that i have created the last time on tempdb , now (that the server restarted) are lost and i have to create them again. Correct?
Correct
Do you know if you lose perfomance when inserting (from a bulk_insert) data to a staging table on a tempdb Vs on a staging table in a user db?
Humm.. I am not so sure but may be it depends on your disk configuration? not sure though
Post #688064
pedro.ribeiro
pedro.ribeiro
Posted Wednesday, April 01, 2009 9:24 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Sunday, May 31, 2009 10:19 AM
Points: 103,
Visits: 982
this is supposing you have the files of tempdb on the same disc conditions as the user databases.
Post #688083
GilaMonster
GilaMonster
Posted Wednesday, April 01, 2009 9:30 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 4:51 AM
Points: 38,118,
Visits: 30,402
pedro.ribeiro (4/1/2009)
Hi masters,
I'm thinking in putting some staging tables on tempdb.
This are empty tables that receive some data from a bulk insert and then i make same validations to this data and insert it on my real tables on my user databases.
Don't. TempDB is for temp tables and other temporary objects. Either create a staging database and put your tables in there or put them in the same database as the final tables are in.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #688095
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Wednesday, April 01, 2009 9:35 AM
SSC-Dedicated
Group: Administrators
Last Login: Yesterday @ 5:09 AM
Points: 31,526,
Visits: 13,864
I'm with Gail, don't put staging tables in there.
Create another filegroup on a new disk, or a new database to hold staging data. Tempdb is for temp working space that SQL needs, not you.
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #688102
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.