From the computer of: shamanstears
(738 recipes)
Created: May 08, 2007 Updated: May 09, 2007
1. Open SQL Server Management Studio.
2. Connect to the desired server.
3. Click the New Query button.
4. Copy and paste the following into the query pane:
5. Change {new location} in the pasted code (for both the tempdb.mdf and templog.ldf files) to the path of the new location.
6. Click Execute.
7. Go to the Control Panel and then Administrative Tools. Select Services.
8. Stop and Start SQL Server (MSSQLSERVER).
9. Go back to SQL Server Management Studio and open a new query pane.
10. Copy and paste the following to verify that tempdb has moved to the new location:
11. Click Execute.
12. In the physical_name column, you should see the path to the new location.
Subscribe to the Tech-Recipes Newsletter
You can get tips like this delivered in your email every week!
We will never, ever sell your email address or spam you.
Related recipes:
SQL Server 2005: The Copy Database Wizard
SQL Server 2005: How To Enable xp_cmdshell
SQL Server 2005: What Service Pack is Installed?
SQL Server 2005: Include Column Headers When Copying Grid Query Results
SQL Server 2005: How to Attach (or Reattach) a Database Missing the LDF
SQL Server 2005: How To Set Up Database Mail
SQL Server 2005: Return a Comma Delimited Result Set from Queries
SQL Server 2005: How To Perform a Full Backup of a Database
SQL Server 2005: Enforce Password Policy and Expiration
SQL Server 2005: Configure Max Number of Characters Displayed in Each Column
Sponsored links
Login
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.Search
Tech Recipes
· Home
· Mac OS X
· Solaris
· Windows
· Programming
· UNIX
· Cisco
· MySQL
· Google
· Instant messaging
· Add recipes
· Leave feedback
· Recommend us
· RSS Syndication
Hot recipes
XP: Small, Free Way to Use and Mount Images (ISO files) Without Burning Them
Make XP look like Windows Vista / Longhorn for free!
Vista: Should I Install 64-bit or 32-bit Version? (x64 vs x86)
Hacks to Beat Rapidshare Download Limits and Waiting Time
How Do I Use or Open Bin, Cue, or ISO Files?
SMS through E-Mail: Cingular, Nextel, Sprint, T-Mobile, Verizon, Virgin Mobile
MySpace Hack: View Pictures and Comments on a Private Profile
MySpace: Hack to Dowload Any Song on Myspace
Who's Online
There are currently, 1953 guest(s) and 1 member(s) that are online.
You are Anonymous user. You can register for free by clicking here
Information
Wish to advertise with us?
All logos and trademarks in this site are property of their respective owner. The comments and forum posts are property of their posters, all the rest © 2003-2007 by QD Ideas, LLC.
Users of this site are legally bound by the Terms and conditions and Disclaimer. Do not use this web site if you do not agree with these policies.
The members, admins, and authors of this website respect your privacy.
Page Generation: 0.81 Seconds
Sun Sep 7 18:08:02 2008