How to change the default backup location?
SQL Server puts backups in a default folder C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup
Is there a way to change that to a different location?
I'm using Smo.Backup object in my code to create backups. The backups I create are stored in that default folder, but I was hoping that I can change that default location without having to make code changes.
Is that possible?
thanks.
SQL Server puts backups in a default folder C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup
Is there a way to change that to a different location?
I'm using Smo.Backup object in my code to create backups. The backups I create are stored in that default folder, but I was hoping that I can change that default location without having to make code changes.
Is that possible?
thanks.
To read the value from the registry you can issue the following command:
DECLARE @BackupDirectory VARCHAR ( 100 )
EXEC master.. xp_regread @rootkey = 'HKEY_LOCAL_MACHINE' ,
@key = 'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.2\MSSQLServer' ,
@value_name = 'BackupDirectory' ,
@BackupDirectory = @BackupDirectory OUTPUT
SELECT @BackupDirectory
This will provide the following output, since we changed the value above directly in the registry.
If we want to change this back to the default folder we can use the following command
EXEC master.. xp_regwrite
@rootkey = 'HKEY_LOCAL_MACHINE' ,
@key = 'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.2\MSSQLServer' ,
@value_name = 'BackupDirectory' ,
@type = 'REG_SZ' ,
@value = 'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Backup'
If we run this command again we can see that this has changed:
DECLARE @BackupDirectory VARCHAR ( 100 )
EXEC master.. xp_regread @rootkey = 'HKEY_LOCAL_MACHINE' ,
@key = 'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.2\MSSQLServer' ,
@value_name = 'BackupDirectory' ,
@BackupDirectory = @BackupDirectory OUTPUT
SELECT @BackupDirectory
To determine where SQL Server is installed you can right click on the server name, select Properties. The root directory as highlighted below will show you the corresponding install name for the instance such as "MSSQL2" highlighted below, so you know which registry entry needs to be changed.
Similar Messages
-
How to change the iPhone backup location
How do I change the location of my iPhone backups from \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\ on my pc (windows XP) to an external hard drive, so future backups will be saved there?
Thanks!http://aaltonen.co/2011/01/03/change-the-location-of-your-iphone-backup/
-
HT1766 How do you change the computer backup location?
How do change the computer backup location when you are backing up your Ipod Touch?
See:
Is it possible to change the back-up...: Apple Support Communities -
How to change the default Path of Prompt Played by MicroApp
Hi
I need to store all the Self Service application prompts in dedicated Media Server. I can modify location of all the Media files by passing the related URL form CVP application, however I need to know how to change the default location of Prompt file played by Play Media Microapplication in ICM Scripting.
Currently the default location taken by Play Media Micro App is the Media _Server.variable path set for VXML Server location while I have a separate Media Server.
Please advice how we can customize the MicroApp Media path.
regards
Kapil KumarHi Kapil,
Try this in your ICM script, define set variables i.e.
set Media Server= ip address of media server
set Locale = en-us
set input Type = DTMF only
set App Media Lib = " you new location i.e. test "
So, the application path will be
http://media server ip address/en-us/test
hope this helps.
Cheers -
How to change the default structure when exporting data in CSV format?
Hello,
can some one tell us how to change the default structure in CRM when exporting lists in CSV format (with Option "Always use unformatted list format (CSV) for download" ? Because we want to add a new structure for our own -is it possible ?
If it is possible where can we find these structure ? In the blueprint customizing ?
Thank you very much,
ChristianThere is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
Excerpts from sun docs:
However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
Example:
Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
Details are here
http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
Will update if i find more information -
How to change the default JRE when there are several version of JRE in Sys
How to change the default JRE when there are several version of JRE in System?
i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
Now the JRE is jdk1.3\bin
When run class that was compiled with jdk1.5,throw:
java.lang.UnsupportedClassVersionError
How can i change the jre to 1.5?There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
Excerpts from sun docs:
However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
Example:
Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
Details are here
http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
Will update if i find more information -
How to change the default admin password for IAS/UDDI
Using "OracleAS UDDI Registry" 10g Release 2 (10.1.2)
http://docs.oracle.com/cd/B15904_01/web.1012/b14027/regwsuddi.htm
How to change the default password
ias_admin/ias_admin123
http://xxx.xx.xxx.xx/uddi/publishingHello NJ,
I tried your solution and its a very good workaround for the workbooks stored in the Database, but when i open workbooks from file system then Discoverer defaults the export path to the Directory from where we have opened the workbook.
My clients are having most of their workbooks stored in File system & stored at different locations. So i wonder if there is just one common solution if possible?
Thanks -
How to change the default element tag using dbms_xmlgen
here is my code that generate output for purchase order data. I followed the syntax shown in xml db developer guide.
I am getting the results but element tags are CAPS letters( As the coloumn names in the type defenitions are stored in CAPS in Oracle). but I need to show in small letters as per my requirement.
can anyone help me how to change the default tag names for elements.
==================================HERE IS THE CODE==================
DECLARE
qryCtx DBMS_XMLGEN.ctxHandle;
result CLOB;
BEGIN
qryCtx := DBMS_XMLGEN.newContext
('SELECT PODL_H_T
( CLOSEDDATETIME ,
COMPANY ,
CAST(MULTISET
(SELECT LINENUMBER ,
COMPANY ,
PURCHASEORDERID ,
ITEM ,
QUANTITYUM ,
TOTALQUANTITY
FROM cpo_wms_podl_LINES
WHERE PURCHASEORDERID = PH.PURCHASEORDERID) as PurchaseOrderDetailList
FROM cpo_wms_podl_HEADERS PH ');
-- now get the result
DBMS_XMLGEN.setRowSetTag(qryCtx, 'Receipts' );
DBMS_XMLGEN.setRowTag(qryCtx, 'PurchaseOrder' );
result := DBMS_XMLGEN.getXML(qryCtx);
INSERT INTO temp_clob_tab VALUES (result);
DBMS_XMLGEN.closeContext(qryCtx);
END;
-- select * from temp_clob_tab
===========create type script=====================
cpo_wms_podl_HEADERS
CREATE or replace TYPE PurchaseOrderDetail AS OBJECT(
LINENUMBER VARCHAR2(400 BYTE),
COMPANY VARCHAR2(400 BYTE),
PURCHASEORDERID VARCHAR2(400 BYTE),
ITEM VARCHAR2(400 BYTE),
QUANTITYUM VARCHAR2(400 BYTE),
TOTALQUANTITY NUMBER
create type PurchaseOrderDetailList as table of PurchaseOrderDetail
create table temp_clob_tab(result CLOB)
create type podl_HEADERS_list_t as table of podl_HEADERS_t
CREATE or replace TYPE PODL_H_T AS OBJECT
CLOSEDDATETIME DATE,
COMPANY VARCHAR2(400 BYTE),
CREATEDDATETIME DATE,
PURCHASEORDERID VARCHAR2(400 BYTE),
SHIP_TO VARCHAR2(400 BYTE),
linelist PurchaseOrderDetailList
)but I need to show in small letters as per my requirement.add alias column names in double quotes as in
SQL> select dbms_xmlgen.getxmltype('select dname "DeptName", loc "Location" from dept') dept_xml from dual
DEPT_XML
<ROWSET>
<ROW>
<DeptName>ACCOUNTING</DeptName>
<Location>NEW YORK</Location>
</ROW>
<ROW>
<DeptName>RESEARCH</DeptName>
<Location>DALLAS</Location>
</ROW>
<ROW>
<DeptName>SALES</DeptName>
<Location>CHICAGO</Location>
</ROW>
<ROW>
<DeptName>OPERATIONS</DeptName>
<Location>BOSTON</Location>
</ROW>
<ROW>
<DeptName>SALES</DeptName>
<Location>MUNICH</Location>
</ROW>
</ROWSET>
1 row selected. -
How to change the default apex port
hi,
i am installed apex4.0 in EBS R12 DB with HTTP Server method. my apex is running from application server 10g and default port is 7777.
URl: http://hostname:7777/pls/apex
My EBS R12 running on http://hostname:8007.
is it possible to change the apex port to EBS Apache port(8007) in R12 and finally i want to change above URL like this
Before change : http://hostname:7777/pls/apex
After Change : http://hostname:8007/pls/apex
Thanks in advanace....How to Change the Default SSH Port from Terminal ?
now showing default SSH Port 22 i need change it pls help me how can do -
How to change the default SSH port on Cat 6500 WS-SUP720-3B
I have been net searching this question and I find answers relative to other Cisco products but not for the 6500 series. We are running
entservicesk9_wan-mz.122-18.SXF17a.bin and would like to know how to change the default SSH listening port..
Thanks in advance..Hi Neil,
Normally this is achieved via the "ip ssh port rotary " but unfortunately, this command is not implemented on your platform so ssh will only work on port 22.
Regards,
Nicolas -
How to change the Default login script and the USER login script in Netware3.12
I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
please tell me
how to change the Default login script and the USER login script in
Netware3.12 ?
Or is there any other ways to do this thing?
Thanks a lot!On 4/6/2006 [email protected] wrote:
> how to change the Default login script and the USER login script in
> Netware3.12 ?
Please repost in the discontinued.forums.
Edison Ortiz
Novell Product Support Forum SysOp
(No Email Support, Thanks !) -
How to change the default database charset to ISO8859-1?
Hi all,
I have created a table with a nvarchar field to store string, may i now how to change the default NLS charset to ISO88591 charset?
Thanks in advance.
chin.Thank you!
I will try later!
But,who can tell me more detail !
thx -
How to change the default time?
when you finish the action of dialing ,the CCM system recognize your finish after 10s .How to change the default time in Service Parameters ,which is the detail Parameters ?
Please see the following link for information on configuring the interdigit timeout.
http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a00800dab26.shtml
Hope this helps. If so, please rate the post.
Brandon -
How to change the default currency in CJ32 and CJ33
Dear all,
As required by the user, I want to know how to change the default currency from controlling area currency to object currency in TCODE CJ32 and CJ33. Currently, the controlling area currency will be defaulted in the field "Views in".
Could any one help me? Points will be awarded.
Thank you.
Christina.
Edited by: Virendra Pal on May 5, 2010 8:34 AMHi Christiana ,
Once you are in tcode CJ30 / CJ32 , Enter either Project definition or WBS element and this shall take you to the Budget screen and once you are here you can find a drop down with two options .One is Controlling are currency and the other one is Object currency.
Since the Currency is set to Object currency in OPS9, System shall allow the budget values in Object currency and if the user wants to see the same values in Controlling are currency ,then the user needs to view the values in Controlling are currency using the drop down .
Regards
Judy -
How to change the default "Safe" files in Safari?
I would really appreciate if anybody could teach me how to change the default "Safe" files using AppleScripts, Folder Actions or .plist files. I really would like to have some files to open automatically after download, specially .pps files, and safari doesn't recognize such files as "safe". I tried to find out reading the help files but got lost.
I posted a reply in an old topic for somebody who seemed to know, but it was not related to that topic, so I decided to open a new one.
I'll be gratefull for any help. Thanks.Hi MDRC,
Have a read of [this topic|http://discussions.apple.com/thread.jspa?threadID=1237961] to see if that helps.
Maybe you are looking for
-
Can not download newest version of adobe to my PC Mac osx 10.6.8
Can not download the newest version of Adobe 16 to my PC Mac os x 10.6.8, 2.5 GH2, Intelis i 5 memory 4GB mhz DDr 3 ... Since I've tried a number of times and it goes through the 3 steps and even says thank you but stays at version 15...also now al
-
Embed a webdynpro application IC
Hi We have the following problem when embedding a webdynpro application in an IView in the portal. Problem: When user leaves the webdynpro application by clicking on some other link or button(in interaction center) it seems that wdDoExit in the webdy
-
iphone 5 stuck on connect to itunes screen- if i try and get it out of recovery mode via itunes, it trys to extract the data and then says the phones memory is full- cant seem to get it sorted, any ideas? I have an ipad mini if that helps?!
-
I'm using fileDownloadActionListener component attached to a button code jsp: <af:fileDownloadActionListener method="#{Dok.onDownload}" contentType="#{Dok.mime}" filename="#{Dok.fname}"/> backing bean: public void onDownload(FacesContext facesContext
-
Hi! I noticed a performance hit lately when I am using my machine for a few hours, the cause was easy to find: it is swapping. The strange thing here that is my physical memory is not nearly full and it even swaps processes that i'm currently using,