Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, April 20, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Administration Forums - Database Administration
Forum to discuss SQL Server or Oracle database administration related to SalesLogix databases. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Database Administration | New ThreadView:  Search:  
 Author  Thread: Backups the Easy Way
Gregor F. Anton
Posts: 12
 
Backups the Easy WayYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 May 06 5:07 AM
fiogf49gjkf0d
Tired of going thru Enterprise Manager to do ad hoc backups?

Would you like a one button backup?

Create this batch file and put it on your desktop or start menu.

This example backups up the SalesLogix database into C:\backup\sql\saleslogix. It will name the file saleslogix_date_time.bak (where date/time are the current date/time of course.

change the batch file to backup other databases or to other locations:

----Batch File Start----

@rem to change to a different database change [SalesLogix] and MEDIANAME = N'SalesLogix' to Database name

@echo off
cls
color 9b
echo.
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo ºCreated by Gregor Anton º
echo º www.antonsolutions.comº
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
REM GFA 060515
echo.
echo.
echo Backs up the SalesLogix database to c:\backup\sql\SalesLogix with current date and time as filename.
echo.
FOR /F "tokens=2-4 DELIMS=/ " %%F IN ('date /T') DO (set v_date=%%H%%F%%G)
FOR /F "tokens=1-2 DELIMS=: " %%A IN ('time /T') DO (set v_time=%%A%%B)

echo:
rem change [SalesLogix] to your database name, replace MEDIANAME = N'SalesLogix' with MEDIANAME = N'YourDatabaseName'
echo BACKUP DATABASE [SalesLogix] TO DISK = N'C:\backup\SQL\SalesLogix\saleslogix_%v_date%_%v_TIME%.bak' WITH INIT , NOUNLOAD , NAME = N'SalesLogix backup', NOSKIP , STATS = 10, NOFORMAT , MEDIANAME = N'SalesLogix' > slxbackup.sql
echo sa
rem replace password with your sa password
isql -U sysdba -P masterkey -i slxbackup.sql
color
pause

---Batch File End----

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Backups the Easy WayYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 May 06 10:28 AM
fiogf49gjkf0d
Thanks for sharing Gregor!
[Reply][Quote]
Gerald Ian Nell
Posts: 3
 
Re: Backups the Easy WayYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 May 06 2:33 AM

buy abortion pill

abortion pill online chrissimpsonphotography.com
fiogf49gjkf0d
Great!
Always nice to make life easier!!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 4/20/2024 4:42:11 AM