When building a Database Maintenance Plan on MSDE to backup user databases,
I'm finding that the "Remove files older than:..." option is not available,
nor does it save the Complete Backup schedule that I define. Does MSDE have
some functionality limitations beyond the performance limitations placed on
it and the lack of SQL tools? I thought those two things were the only
differences.--=_NextPart_0001_FD68E59B
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi,
Regarding this:
1)Just check whether the sqlmaint.exe is available in the Binn folder of
the MSDE install.
2) Also wanted to inform you that you can run sqlmaint.exe as a command
line utility and in a batch file and schedule the batch file in Windows
Scheduler and it will do the same tasks as the Database maintainence plans.
Also it has some pretty cool features which you can try out using Books
Online.
Attached is an example of how to run it from command line as a batch file.
I have taken Northwind as an example. You need to change the server name
and set the appropriate path in the batch file and run.
Hope this helps you in running the maintainence plans.
Regards,
Himadri
--=_NextPart_0001_FD68E59B
Content-Type: application/octet-stream; name="DBMaintainence.bat"
Content-Transfer-Encoding: base64
cmVtIFJ1bm5pbmcgRGF0YWJhc2UgbWFpbnRhaW5lbmNlIGZvciBOb3J0aHdpbmQNCnBhdXNlDQpz
cWxtYWludCAtUyAiaHNzYXJrYXIxLTJrIiAtRCBOb3J0aHdpbmQgLUNrREIgLUNrQWwgLUNrVHh0
QWwgLUNrQ2F0IC1IdG1sUnB0ICJDOlxNeVJlcG9ydHNcTkhDX2Noay5odG0iIC1VcGRPcHRpU3Rh
dHMgMTUgLVJtVW51c2VkU3BhY2UgMTEwIDEwIC1Ca1VwREIgIkQ6XE1TU1FMN1xCQUNLVVAiIC1C
a1VwTWVkaWEgRElTSyAtQ3JCa1N1YkRpciAtRGVsQmtVcHMgMndlZWtzIC1Ca1VwT25seUlmQ2xl
YW4gLVZyZnlCYWNrdXAgDQo=--=_NextPart_0001_FD68E59B--|||Thanks. The issue is that I want to take advantage of the ease of use
provided the database maintenance plan wizard, so using the a command line
utility is a step in the wrong direction for what I'm doing. The
sqlmaint.exe file is available. It's not that the database maintenance plan
wizard doesn't come up at all. It's a matter of the options I listed
previously not working.
"Himadri Sarkar" <hssarkar@.microsoft.com> wrote in message
news:LefzspG3DHA.1512@.cpmsftngxa07.phx.gbl...
> Hi,
> Regarding this:
> 1)Just check whether the sqlmaint.exe is available in the Binn folder of
> the MSDE install.
> 2) Also wanted to inform you that you can run sqlmaint.exe as a command
> line utility and in a batch file and schedule the batch file in Windows
> Scheduler and it will do the same tasks as the Database maintainence
plans.
> Also it has some pretty cool features which you can try out using Books
> Online.
> Attached is an example of how to run it from command line as a batch file.
> I have taken Northwind as an example. You need to change the server name
> and set the appropriate path in the batch file and run.
> Hope this helps you in running the maintainence plans.
> Regards,
> Himadri|||Yes there is more than a workaround. It is described at:
http://dbforums.com/arch/72/2003/4/739692|||Hi,
I believe you are running into a specific problem related to MSDE sp2
because prior releases of MSDE did not include sqlmaint. In sp2 we added
sqlmaint to MSDE allowing us to create database maintenance plans however
sometimes the registry key for default backups is not added.
To resolve the problem you need to do two things:
1) create a default backup folder (optional)
2) Add the reg key
HKLM\software\microsoft\mssqlserver\mssqlserver\backupdirectory and point
it to the folder where you want your default backups to go.
Please try the steps and let me know whether it resolves the issue or not.
No comments:
Post a Comment