Moving Tempdb location

Hi All,
I am using SQLSERVER2012.Iam trying to move tempdb database from one drive to another drive. it was not creating new data and log files in new location. I executed below script and then restarted services. but the data file and log file are not created in
new path.
USE master;
GO
alter database tempdb MODIFY FILE (NAME = tempdev,FILENAME='NEW PATH');
GO
alter database tempdb MODIFY FILE (NAME = templog,FILENAME='NEW PATH');

Hi 
I cannot reproduce it... The below perfectly worked for me
USE master;
GO
ALTER DATABASE tempdb 
MODIFY FILE (NAME = tempdev, FILENAME = 'E:\SQLData\tempdb.mdf');
GO
ALTER DATABASE tempdb 
MODIFY FILE (NAME = templog, FILENAME = 'F:\SQLLog\templog.ldf');
GO
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • Find oldlocation after moving tempdb file

    HI Friends,
    How to check when tempdb files are moved to another location.
    It looks like someone moved tempdb files,but how to check the old location for tempdb.
    Thanks
    Shashikala
    Shashikala

    How to check when tempdb files are moved to another location.
    It looks like someone moved tempdb files,but how to check the old location for tempdb.
    What you want to check original location of tempdb files or when was it moved ? Like Praveen said after moving tempdb files a restart is required of SQL Server service.
    If you are using SQL Server 2008 r2 and above you can use below query to find out server restart time
    select servicename,last_startup_time from sys.dm_server_services
    If you are using SQL Server 2008 and above, use below query
    select sqlserver_start_time from sys.dm_os_sys_info
    Make sure you have view server state permission to run the DMV's
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • I am unable to sync new music. Reformatted I Pod now I can't sync old music either, either automatically or manually. Is it possible to download all music over again without being charged for it? I think the issue is I moved the location of my music

    I am una
    le to sync any music from I tunes. The problem started when I could not download new music because for some reason I moved the location of the music. At least the e/m says I did. I don't remember doing that. I decided to reformat my I pod and now I can sync my old music either, manually or automatically. I was wondering if I can delete all my music from I tunes & start over with new downloads? Will I get charged again?

    Ok, got new phone and it worked fine..at first. Now I am getting the same error. I also notice that the iphone goes from saying "sync in progress" to back to the home screen with the icons. And then I get the message "could not sync phone - device not connected"
    I am getting seriously frustrated. The Apple tech support people have been ZERO help. I have uninstalled and reinstalled Itunes twice. I have even gone so far as doing a CLEAN install of OS X on my IMAC. Now I have the smae problems as before. Anyone have any idea what the problem could be?

  • Moving pics location and removing images from iphoto

    Here is the basic breakdown.
    1. Imported pics from camera into iphoto.
    2. I want to remove some of the pics from iphoto.
    3. I do not want to use delete due to I want to burn/move a copy to CD or a different folder on my HD.
    4. I moved a couple for test purposes from my iphoto lib to my home folder.
    5. Reboot.
    6. In iphoto I can still see the photos in the smaller views. but when I try to full screen the photo I get an grey screen ?x type of thing.
    I do not want the small pic either.
    Advice or direction?
    Thanks.
    T

    T Slap:
    To add to Terence's suggestions I'd like to expand on:
    3. I do not want to use delete due to I want to burn/move a copy to CD or a different folder on my HD.
    To copy those photos to another folder use the File->Export->File Export menu option. This will copy the files to the location of your choice.
    To burn the photos to disk so that iPhoto can access them at a later date then use the method described by Terence. To burn just the jpg files to a disk without the iPhoto format use the Export route again to a folder on the desktop and then burn that folder via the Finder.
    And do not take the warning about messing with files via the Finder lightly. As you found out it can really mess up the library.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.

  • Moving default location of JSP demo

    As you know that the default location of JSP demo for 9iAS is located at ~/Apache/Apache/htdocs/demo and I have successfully changed the doc root to ~/docs and served our locally created Web apps in that directory. But when I moved demo into ~/docs/demo and trying the demo apps such as lottery, I got error:
    oracle.jsp.parse.JspParseException: Line # 7,
    Error: Unable to find class for bean: picker defined by tag with class: oracle.jsp.sample.lottery.LottoPicker
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.(Compiled Code)
         at java.lang.Exception.(Compiled Code)
         at oracle.jsp.parse.JspParseException.(JspParseException.java:37)
         at oracle.jsp.parse.OpenJspTagHandler.defineBeans(Compiled Code)
         at oracle.jsp.parse.OpenJspTagHandler.defineBeans(Compiled Code)
         at oracle.jsp.parse.OpenJspTagHandler.validateTagAttributes(Compiled Code)
         at oracle.jsp.parse.JspParseTag.parse(Compiled Code)
         at oracle.jsp.parse.OpenJspTagHandler.parse(Compiled Code)
         at oracle.jsp.parse.JspParseTag.parseNextTag(Compiled Code)
         at oracle.jsp.parse.JspParseTagFile.parse(Compiled Code)
         at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
         at oracle.jsp.app.JspAppLoader.translatePage(JspAppLoader.java:1513)
         at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1146)
         at oracle.jsp.app.JspAppLoader.loadPage(Compiled Code)
         at oracle.jsp.app.JspAppLoader.getPage(Compiled Code)
         at oracle.jsp.app.JspApplication.dispatchRequest(Compiled Code)
         at oracle.jsp.JspServlet.doDispatch(Compiled Code)
         at oracle.jsp.JspServlet.internalService(Compiled Code)
         at oracle.jsp.JspServlet.service(Compiled Code)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at org.apache.jserv.JServConnection.processRequest(Compiled Code)
         at org.apache.jserv.JServConnection.run(Compiled Code)
         at java.lang.Thread.run(Compiled Code)
    Is there some where else I need to change the configuration for JSP?
    Thank you

    You can move them from teh default location to wherever you want.
    Drag the iTunes folder from C:\Users\<username>\Music\iTunes\iTunes Music to
    C:\Users\<username>\iTunes\iTunes Music.
    Hold Shift and laucch iTunes then select *Choose existing library* and select the *iTunes library file* in the iTunes folder.

  • Moved computer location. ca not get elemnts 11 only photo shop. lost progect

    I moved our computer location. Now I can not get premiere elements 11. I only get my photo shop. HELP  please

    barbe1957
    Please explain "no".
    Does that mean the Premiere Elements 11 did not open to the double click of the Adobe Premiere Elements.exe file?
    If not, then we are going to try renaming just the SLCache Folder as described in the following Premiere Elements blog post
    which should be applicable to versions 11 and 12.
    ATR Premiere Elements Troubleshooting: PE12: Premiere Elements 12 Editor Will Not Open
    Just do Way 2/Step 2.
    If that does not work, we will go for deleting the Premiere Elements 11 settings file.
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    12.0
    and in the 12.0 Folder is the Adobe Premiere Elements Prefs file that you delete. If that does not work, then you delete the whole 12.0 Folder
    in which the Adobe Premiere Elements Prefs file exists. Be sure to be working with Folder Options Show Hidden Files, Folders, and Drives active so that you can see the complete path cited.
    What you are reporting should not be happening as a result of moving the computer from one outlet to another. Were you having any problems with the computer before you decided to change its location?
    Thanks.
    ATR

  • Moving installed location of LiveType data

    Does this procedure for moving the installed location of LiveType data apply to the LiveType data that is bundled with Final Cut Express HD (version 3.0)? These are the instructions I am questioning -
    i http://docs.info.apple.com/article.html?artnum=93297
    , because the document's Last Modified Date is a long time ago - Jan 6, 2004)
    Related question - in order to uninstall the LiveType data, do I just drag the
    i /Library/Application Support/LiveType/LiveType Data
    folder to the trash or are there other things I would also have to delete from my system?

    Yes it's the same.
    Hold the Command key when you drag and you'll move the folder, not copy it.

  • Problem Moving Library Location

    I'm trying to move my iTunes library to a network drive.
    I've changed the location in Preferences but when I try move the music files using Consolidate Library from the Advaced tab, I get the following error message; "Copy music failed. The disk could not be read from or written to". I can access both the old and new librarys with any other application.
    Any thoughts?
    Thanks.
      Windows XP Pro  

    Consolidate simply copies everything in iTunes to the location shown in iTunes prefs -> Advanced.
    It does not "find" all your music.
    File -> Add to library and select the folder with the 5,000+ songs.

  • Moved Bridge location; Error operation could not be completed

    So I recently installed a 120 gb ssd to be used for my startup files. I installed leopard, upgraded to 6.8, downloaded and installed lion, couldn't properly back up from a time machine back up or a migration so just started over and moved all my files over, (applications, libraries, system and bootup), keeping my music, movies and pictures on my main 500 gb. I also did a clead install of CS5 suite but Bridge is still a no go with the response that the operation could not be completed. I've looked around on these forums and have found that this comes up when you move the adobe applications. However I still have not found a soloution so any help would be greatly appreciated.
    I have a unibody late 2009 white Macbook.

    So I recently installed a 120 gb ssd to be used for my startup files. I installed leopard, upgraded to 6.8, downloaded and installed lion, couldn't properly back up from a time machine back up or a migration so just started over and moved all my files over, (applications, libraries, system and bootup), keeping my music, movies and pictures on my main 500 gb.
    Don't quit understand your configuration, you mean you did manage to build 2 HD in your MacBook?? or do you use the SSD in the MacBook and the 500 GB as external?
    However, moving libraries and system software instead of install again is usually not the best idea...
    You should first try to back up custom settings for PS like tools, actions and other presets. Then use the PS help menu to deactivate permanently and use the uninstaller for PS to uninstall it. Maybe even use the clean tool for PSCS:
    http://www.adobe.com/support/contact/cscleanertool.html
    And it would not be a bad idea also to use the leopard install disk again to restart from and then use the option to install and archive the system again. This does not take long and creates a whole new library while making a back up of your old one. Use the software update (it will present you the combo update to 6.8) to get the latest updates.
    Then try again to install PS and I would think you should be OK.

  • In the lightbox widget, how do I move a caption without moving the location of all the captions?

    I'm using the lightbox widget for my portfolio, and I've uploaded files of various layouts and orientations. Some captions appear over my graphics. When I try to move the caption below the graphic, it moves the location for all of my captions. Edit Together is unchecked. What am I missing?

    Consult the documentation for the app you've downloaded and see if they offer any way of importing from the app on your BB.

  • Moving the location files to an other computer

    I am installing all my software again as I have to many little problems. I do not want to use the migration tool as the to migrating files have moved in many increments all the way from 10.1 to 10.4 and from a G3 to a Pentium.
    Anybody know where they hide in 10.4? And can I copy them across? Or any tricks involved?
    Thanks

    There are too many
    differences between the OS updates.
    I am copying from 10.4.8 to 10.4.8. Where are the potential differences?
    Why risk it.
    nothing to loose it either works or not. if not I have backup and I restore. Otherwise I loose all the remote settings I do not know the details of (passwords) is a much worse fait in my mind.
    Question. do you know where the files are and which ones they are? if yes I give it a go and let you know if it works.

  • [Solved] Moved from location and internet connection stopped working.

    Hello everyone, this is my first post in the forums and first time using arch so please bear with me. I recently bought an Asus UX51, formatted it and installed arch linux with the help of the beginner's guide. After overcoming several problems (preinstalled raid, nvidia optimus to name a few) I managed to get it running, installed a DE and was using wireless connection just fine with
    # ip link set wlp3s0 up
    # wifi-menu wlp3s0
    Everything was going fine until I came for a holyday's week to my parents house and tried to connect to their wireless network to no avail. I have WAP in my house, same do they in their house (in which I'm right now).
    I have been trying the past 2 days with netctl, and even the manual method described in the wiki , googled, etc. I'm already out of ideas so I decided it was time to ask for help. If it's of any use, wifi-menu scans the network properly, and # netctl status wlp3s0-interface_name returns this:
    Also read somewhere in the forums to try # journalctl -b , this is what I get on the last page:
    When I try #ping, I get the following after having to wait around 15 secs :
    ~$ ping google.com
    ping: unknown host google.com
    I even tried booting from an USB with an arch iso, just to try getting a wired connection, mount my arch installation and download some other network manager just to see if I got any luck, but not even that worked (in my house, just by connecting the cable before booting I would automatically have internet access when booting with the iso, but it didn't work here...).
    Any help would greatly be appreciated.
    Last edited by contiver (2013-08-01 18:06:48)

    I got it running !
    Just followed the manual guide once more, but managed to bypass some problem I had the first time I tried (you could say I was a bit lost by the command in the wiki but managed to understand it a bit more this time)
    I believe the setup my parents have here is pretty messed up, other people get similar problems from time to time with the network, but I don't really understand much to mess with it so I'd rather leave it like it is.
    In case it's of any use to anybody I'll leave here how everything was left in the end in my laptop.
    Used:
    wpa_passphrase foobarssid foobarpassword
    to generate:
    network={
    ssid="foobarssid"
    #psk="foobarspassword"
    psk=f5d1c49e15e679bebe385c37648d4141bc5c9297796a8a185d7bc5ac62f954e3
    I copy pasted that on my /etc/wpa_supplicant.conf ,which had a line at the start which seems was a leftover from the time I tried before (when I tried using wpa_supplicant it failed and complained about it in the error msg).
    After that I used
    wpa_supplicant -B -iwlp3s0 -c/etc/wpa_supplicant.conf
    After that I used
    dhcpcd -A wlp3s0
    That failed because it said that there already was a dhcpcd process running, I killed it, tried again and it all went fine. Tried ping and kept answering "unknown host". Tried rebooting and that's when # ping google.com  started to behave like it should. Tried browsing a bit and no problems whatsoever.
    Thanks a lot for the help!

  • Dynamically moving the location of buttons

    This may be a very easy solution with a setting or a control that I'm not seeing. I have some buttons that I'm putting under a table control. I would like the buttons to move up or down on the page based on the number of rows that appear in the table. How do I go about doing this?

    I'm not following you. Do you have an example? In what event am I using setStyle() and how am I getting the size of the table to know where to place the buttons?

  • Is there a way to stop iCal moving address info from event text into 'location'??

    Hi, I've just come back to the forum after a long time away, so sorry if this has already been covered, but...
    When I create a new event in iCal and type in text which includes an address, the address segnment is automatically moved into 'location'. I find this infuriating as for work reasons I later need to copy and paste all the event text into another app, and the address is now in a different place! As an additional irritation, iCal also screws with the address text and switches the postal code into upper and lower case, so I have to re-type part of it when I move it back into the main event text. Any way to stop this happening? Thanks!

    as far as i understand iCal it is on the "receivers/subscribers" side to deal with email-updates (and not on the "senders/changers" side):
    snippet from my Re: How do you stop receiving notifications about updated calendar events?:
    to NOT get email notification about updated events from a shared calendar you subscribed to you have to uncheck "events affect availability" in that calendars "info" (mac os X.7 and X.8: iCal —> calendars dropdown —> right click on the subscribed calendar —> choose "get info" from the context-menu —> uncheck "events affect availability")

  • Migrating to PSE10 & moving default storage locations

    Greetings all,
    I have purchased the upgrade from PSE9 to PSE10 and am planning to migrate the default location of my images and catalog from a local drive on my Windows 7 PC to a NAS device. I am wanting to move the default location to a NAS so that I can access the catalog, thumbnails and images from more than 1 location. (Yes, I know about the performace problems if using a wifi and am not).
    The question that I have is one of sequencing these steps. What is the best sequence in order to reduce the hassles associated of migrating to the newest software version and moving the location of of all of the image assets I have, knowing that I have about 10k images in my catalog.
    At a bare minimum I know I need to:
    upgrade my local PSE9 application to PSE10
    possibly export the catalog
    import the catalog into the new catalog on the NAS
    etc
    What is the best sequencing of steps to help me stay clear of trouble as I have a lot of tagging and ratings that I what to preserve?
    Thanks all.

      Probably best to treat it like the purchase of a brand new computer and use the built in Backup and Restore commands.
    I think its best for optimum performance to ensure the catalog as well as the images are stored on the NAS.
    The catalog data base normally has a default location in the system files (often hidden files)
    You can find the path to the current catalog by opening the Organizer and clicking Help à System info
    See this link for backup and restore. It refers to an earlier version of Pse but the principles remain the same.
    http://kb2.adobe.com/cps/402/kb402894.html

Maybe you are looking for