maintenance-plan Questions

10

Solved

I'm trying to write some SQL that will delete files of type '.7z' that are older than 7 days. Here's what I've got that's not working: DECLARE @DateString CHAR(8) SET @DateString = CONVERT(CHAR(8),...
Myron asked 17/10, 2008 at 15:15

11

I have a Maintenance Plan that is suppose to go through the BACKUP folder and remove all .bak older than 5 days. When I run the job, it gives me a success message but older .bak files are still pre...
Jesusa asked 16/3, 2011 at 15:7

5

Solved

Currently our database has size 10 GB and is growing by around 3 GB per month. Often I hear that one should from time to time rebuild the indexes, to improve the query execution time. So how often ...
Cromer asked 16/2, 2010 at 19:0

1

Solved

Here is my app’s current way to handle the maintenance process: I have an environment variable for the app status: REACT_APP_SITE_MODE=“LIVE” | “MAINTENANCE” I'm using react-router for routing the...

9

Solved

In the SSW rules to better SQL Server Database there is an example of a full database maintenance plan: SSW. In the example they run both a Reorganize Index and then a Rebuild Index and then Update...
Gnu asked 11/8, 2008 at 7:2

3

Solved

When I go to SQL Server Management Studio -> Management -> Maintenance Plans -> Right click on the maintenance plan that I want to execute but the option is greyed out. I have checked and SQL S...
Noelyn asked 1/6, 2015 at 12:40

5

Solved

I would like to monitor index usage for an SQL database in order to find unused indexes and then drop them. How can I monitor index usage most efficiently? Which scripts could be useful? I'm aware ...
Ferren asked 21/9, 2009 at 19:53

5

In the spirit of this question I wanted to have a sense of what is the proportion of time split between fixing bugs and implementing new features. If possible try to give an estimate for the ...
Endorsed asked 1/3, 2010 at 8:1

1

Solved

I have a Maintenance plan under SQL Server 2008 R2 which runs at midnight. Within this maintenance task, there is no notify operator task. Within the SQL Agent job that executes the maintenance pla...

2

Solved

Is there any way to programmatically execute (start) a SQL Server maintenance plan? We have a windows service that runs nightly and updates the DB with lots of data, once that is finished we would ...
Roentgenoscope asked 15/6, 2011 at 15:58

2

Solved

I created some Maintenance Plans in SQL Server 2008 without using the wizard (i.e. right-click on Maintenance Plans and select New Maintenance Plan...). When created that way, there is no option to...
Sponge asked 20/7, 2010 at 13:41

1

When I'm trying to create a new maintenance plan in SQL Server, it is showing this error: TITLE: Microsoft SQL Server Management Studio ------------------------------ 'Agent XPs' component is tur...
Papule asked 6/7, 2010 at 7:26

1

Solved

I'm looking for a way to periodically (e.g. weekly) run some SQL statements in a database to delete old data. As far as I can see, there are (at least) two ways to do this: using a "Maintenance P...

1

Solved

I'd like to clarify what the optimal maintenance plan set up is for the ASPState database that is used by ASP.Net SQL Server session state. The standard user database maintenance plan doesn't see...
Maurreen asked 31/7, 2009 at 12:28

5

Solved

Do all SQL server versions rebuild indexes automatically or have a default rebuild criteria? I understand statistics are rebuilt automatically but not sure if indexes do as well.
Homologous asked 24/2, 2009 at 12:39
1

© 2022 - 2025 — McMap. All rights reserved.