Autoshrink And Msdb Question

Jul 21, 2004

I have a test database and I detach and reattch this database during my testing on my test system. This database is originally from my production system. I have a couple questions that came up during my testing:

1. When you detach/attach a database from a different server with the same setup, does it gather it database setup information from the model database on the current server?

2. When you switch the autoshrink database option from enable to disable, do you have to restart the server?

3. How to you change the default make of the model database?

Thanks in advance for any help.

View 1 Replies


ADVERTISEMENT

Log Shrinking When DB Not Set To AutoShrink

Jan 11, 2001

Hello,

Ran the Andrew Zanevsky script to shrink the Tran log, this works great, but say the log gets shrinked to 30MB, I then expand it to 40MB, then sometime within a 24 hour period it magically gets reset to 30MB. The database is a standalone DB, and is on SQL7 SP1 the script I ran can be found @ http://www.pinnaclepublishing.com/sq/SQMag.nsf/WebIndexByIssue/F36C151BD80FAD8F852568D0007799BE?open.
Can anyone please give some insight into this or maybe a flag that got reset somewhere?
Thanks in advance
Pat

View 4 Replies View Related

The Performance Regarding To AutoShrink

Nov 12, 2004

Hello, everyone:

If I select AutoShrink in database properties to release space to operating syetem, how does it make the perfomance to change. Thanks a lot.

ZYT

View 2 Replies View Related

Autoshrink Efficiency

Aug 2, 2007

Howdy folks!

I've got a database that needs to run 24/7. I'm looking into maintanence options and wanted to run the following by y'all:

Ok, I've read the MSDN "Maintaining databases" article and noticed the following statement about autoshrinking: "This technique uses almost no processor time and memory". I also searched these forums and found that many users say autoshrinking heavily lags down sql transfers. So who's right? And if it does lag transfers, by how much?

Another question I have about autoshrink is fragmentation. It would seem to me that over time solely depending on autoshrink would cripple a server in terms of fragmentation; is this the case?

Also, does autoshrink (or manual shrinking or compacting) update the statistics?

Final question!!! I'm programming in native c++, is there a way for me to run commands such as "DBCC SHRINKDATABASE" in native OLE DB code?

Thanks!

View 4 Replies View Related

Service Broker Is Disabled In MSDB Or MSDB Failed To Start

Nov 21, 2005

Whenever I start my SQL Express 2005 database, I get the following in the logs :

View 10 Replies View Related

Autoshrink Option Causes Deadlock

Mar 1, 2001

Hi,

I had a DTS task running which was doing an insert (over 17.5 million rows) in a database for which the auto shrink option was enabled.

After a few hours I noticed that the insert was blocking the autoshrink.

Since I didn't want to kill my insert, I tried to kill the autoshrink from the query analyzer, but when trying to do so I got the message that only user processes can be killed.

Does anyone have similar experiences? Should you consider enabling the autoshrink option or is this just trouble?

Stef

View 1 Replies View Related

Truncate On Checkpoint And Autoshrink?

May 9, 2002

Details: MSDE 1.0 / SP4 - Windows 2000 Pro

I have a database that has Truncate on Checkpoint set for the Log file. The Log file is set to AutoGrow. Is it necessary to to run dbcc shrinkdb (or the like) to get Log file to contract? Is there any harm in not contracting the Log file? I'm looking for best efficiency and least-likely-to-fail path as DB sits 'really remote' and there is little opportunity for observation.

Does anyone have any recommendations on re-indexing? I have one table that bears the most growth. It has a clustered index. What would be a suitable data point to watch? I run a SP to save DBCC SHOWCONTIG info along with the duration of a test query, but haven't seen a clear breakover point.


TIA -RC

View 2 Replies View Related

Overhead For Autoshrink, Autostats

Jun 6, 2001

Does anyone have any benchmarks for the amount of overhead caused by autoshrink of the log and having autostats enabled? We have a customer that insists that turning off these options was necessary to eliminate a performance problem they were having (Query timeouts), but we are not convinced that these two options would have generated enough overhead to have been the root cause (they also rebuilt all their indexes and made some other unspecified changes that more likely solved the problem).

We are hestitant to have them continue with these options disabled because then we need to rely on them to keep the log file shrunk and the statistics updated and because of the data changes during the day, would prefer to have stats updated automatically rather than on a fixed schedule that may not be as appropriate.

Anyway, if anyone has any feedback on overhead generated and potential performance implications of having either of these options enabled, it would be greatly appreciated.

Thanks,
Ray Rankins

View 2 Replies View Related

AutoShrink Transaction Log File

Jul 20, 2005

Hello All,I have been encountering trouble with a SQL Server 2000 Transactionlog file, mainly with the constant growth and lack of the autoshrinkoption. Here are the details:1.)OS is Windows 2000 server sp32.)SQL Server 2000 (Build 2195) sp33.)Database Recovery Mode is set to Full4.)Maintenance Plan for "Transaction Log Backup" is set to removefiles older then 1hr.5.)The "AutoShrink" option is on for the DB properties.Also as part of the Maintenance plan the database in question isbacked up nightly. The problem is that the transaction log file hasgrown so much that it was consuming all of the free space on the harddrive so I then restricted the file growth. When all of the drivespace was consumed or the "database log file is full" message wasencountered I would run the following Query scripts to shrink the filemanually:First – Backup Log <database name> With Truncate_OnlySecond – DBCC Shrinkfile (<database name>_log, 200)Which brings the transaction log file down to 200mbs. I need toautomate this so that I don't have to keep babysitting this databaseor manually shrinking the log file.

View 3 Replies View Related

Big Msdb ?

Jan 15, 2002

Hello
I have a very large base msdb, I do not arrive has to purify it with sp_delete_backuphistory, it is much too long, have another solution? thank you

View 2 Replies View Related

Msdb

May 10, 2001

Hi ,
I am facing a paculiar problem.I got some jobs scheduled in MSDB.They are running fine for some time. Yesterday when i tried to open the properties of a job from EM i am getting an error 'Select Into Bulk copy option not enabled'
Can anyone got this before? I appreciate if any one can throw some thoughts on this.
thanks in advancce
MM

View 1 Replies View Related

Msdb

Nov 6, 2000

I know that msdb is used to manage the job schedulers in sql server 7.0 ( job agent ). Does this (msdb) like other databases, where I can control its size, shrink it or expand it.

IF am backing up the msdb, and I errased all jobs scheduled in sql agen. Can I restore all the deleted Jobs by restoring the msdb.

Ahmed

View 1 Replies View Related

MSDB

Jun 15, 2000

Does anyone know how to fix this message?
Message: Could not insert a backup or restore history/detail record in
msdb.dbo.sysbackuphistory or sysrestorehistory.
I ran DBCC CHECKDB (msdb) and no errors were reported.
Thanks

View 5 Replies View Related

MSDB

Jun 6, 2002

Hi ,

I have a job called JOBA scheduled to run every 10 min.
Is there a way in Tsql that I can find out whether the job is currently running or not.Is there any table/field in msdb database that gives me the desired info.

TIA,
Kinnu

View 2 Replies View Related

MSDB Is Too Big

Dec 18, 2007

My MSDB is too big [about 14 GB]. When I closely looked all tables, here is what I found -

Top 3 biggest tables are -

sysmaintplan_logdetail - rows- 124923 - data - 13375456 KB
DTA_Tuninglog - 181658 rows - data - 163248 KB
sysmail_mailitems - records - 14227 data - 126208 KB

I am not a DBA, so if any one can explain in simple terms how I can cleanup this maintenance plan log detail without increasing the size of tempdb? How can I stop this database growing in the future?

I have only a gig of space left on that drive.

Thanks in advance

View 18 Replies View Related

MSDB Over 300MB!

Aug 19, 2002

I made a few changes to backup jobs. Within a few hours the MSDB grew to like 355MB. ANY ideas why this happened??

View 1 Replies View Related

MSDB Restore Help Please

May 12, 2001

I am trying to restore my msdb database after rebuilding my RAID, and reinstalling sql. I can restore my user databases fine, but my msdb gives me error 3132:
The media set for database msdb' has 2 family members but only 1 are provided. All members must be provided.

I really don't want to lose all my jobs, so any help would be appreciated. thanks.

View 2 Replies View Related

MSDB Problems

Feb 16, 2001

I have a problem with my MDSB database. After my nightly reboot, I received an error in my Lof File stating: Error 9001: Cannot file log device for msdb database. I looked and saw the msdblog.ldf, so I am alittle confused. I ran a dbcc checkdb, dbcc newalloc and dbcc updateusage on msdb, but I did not get any errors. I added an additional log file to try and fix it, but nothing has fixed it. I am perplexed because all my scheduled backups are failing.

Any additional advice would be helpful.

Thank you,
Jennifer Fleming

View 1 Replies View Related

Moving Msdb

Feb 29, 2000

I want to move the physical location of the msdb database on a SQL server. However I cannot drop the database with the drop database statement, even setting it to dbo use only and single user mode. I get an error message saying the database is in use. Obviously I do not want to reinstall the server. The reason I want to move it is because it is located in the default dir on the C: drive which is running out of space.

Any ideas.....

View 2 Replies View Related

Restore Msdb

Nov 13, 2000

hi, I already have jobs in the sql server agen. I want to copy all these jobs to another sql server, What is the best way to do it.
here what I am thinking to do
1. Back up the msdb from the sql server which has the jobs
2. restore msdb into the sql server where I need to create the jobs.


I got an error message, 15089 cannot change the 'single user' option of a database while another user is in the database.

But no one is in except me.? thanks for your input

Ahmed

View 5 Replies View Related

Msdb Full

Mar 20, 2000

Problem with Msdb
error 1105 can not allocate space in sysbackupdetail.
msdb has 1.0MB of database space available and 1.97MB of log space.
I intended to expand the database but must first expand the device. the available space for the device is -703. So I can not adjust and expand. Any ideas. My hourly dumps appear to be functioning if you view them ny expanding the device but tasks show them as failing.

View 2 Replies View Related

Msdb Restoration

Dec 7, 2000

Hi !

when i am trying to restore MSDB database from a disk backup it is giving an error saying
"Database in use.System administrator must have exclusive use of the databse to run the restore operation".
But i am not using msdb anywhere.when i see the processes under current activities i see an application named sqlagent-alert engine using the database.even after killing this process it reppaears and stops the restore operation.
so i stopped sql server agent and did the restore operation.It worked.
so is it necessary to stop sql server agent while restoring msdb?may i know the logical reason for it?

View 1 Replies View Related

Permission On Msdb

Feb 8, 2001

How would you set up a task run by user without sacrificing the alias permission on msdb (SQL 6.5)?

Situation:
I have set up a task for runing replication by a user with the alias permission on msdb in order for the user to run the task. And I do not want to grant the alias permission to the user for the security reason. But if I set it up by granting only the sp_runtask permission to the user on msdb I always got the message like "You cannot perform this action on a task you do not own."

Please share your workaround. Thank you ahead of time

View 2 Replies View Related

DTS Tables In MSDB

Apr 3, 2003

Hello,

Can anyone tell me what tables are used to store DTS defs? When you create a DTS job, where does it get saved?

Thanks!

View 1 Replies View Related

MSDB Problem

Oct 27, 1999

when I am trying to restore a database from a dump device (device is mapped to other server) the following error occurs.

I tried doing checkdb and newalloc on msdb but it din't work.
Is there any problem if I truncate MSDB?

ERROR:
Could not insert a backup or restore history/detail record in msdb.dbo.sysbackuphistory or sysrestorehistory. This may indicate a problem with the MSDB database. DUMP/LOAD was still successful. (Message 3009). NOTE: The task was retried the requested nu

View 2 Replies View Related

Sysbackupdetail In MSDB

Aug 30, 1999

The sysbackupdetail table in the MSDB database at our SQL6.5 installation has grown to over
50,000 rows, since we back up 25 databases every day. I've enlarged MSDB once because
of a space problem, and I'm wondering whether I can just delete the older entries in this table
to prune it, without dire consequences. MSDB has other history tables, and I'd like to handle
them all the same way.

If I mess with these tables, will the sky fall on me?

View 1 Replies View Related

Msdb Maintain?!

Nov 15, 2006

hi expertsss..
my msdb database is like 2gb big.. to me is really big.. so is there a way to maintain that? and how. ..
also.. my disk level fragment are bad on one of my drive (some datafiles in there and msdb is there too). is there any 3rd party tool i can use to do the defragment and set schedule ? please help thanks~

View 7 Replies View Related

Restoring Msdb

Jan 24, 2002

Hi,

I am trying to build a test environment for our production server. I backedup and restored all my databases. I had to copy the jobs too, so I backedup and restored msdb database. When I try to change any of the jobs, I get the following message.

"Error 14274: Cannot add, update, or delete a job (or its steps or schedules) that originated from an MSX server."

I have no clue what this message is about. Can someone please provide me with some clues about how I can modify my jobs and get my test environment to work.

Thanks,
Rob

View 2 Replies View Related

Msdb Corrupt

Apr 28, 1999

After implementing a recommendation to perform dbcc checkalloc before nightly backup, I began getting the error below on msdb. Books Online suggests restoring from a known clean backup. We have only been using SQL Server for a few weeks and it seems that all our backups of msdb have the same problem. Is there any way of correcting this problem?


Msg 2521, Level 16, State 1
Table Corrupt: Page is linked but not allocated; check the following pages and table: alloc page#=3584 extent id=3816 logical page#=3816 object id in extent=8 (object name = syslogs) index id in extent=0

View 2 Replies View Related

Copy Msdb

Jun 28, 2002

I need to copy the msdb to another Server, same network, different Server Name. What's the best way to do this?

View 3 Replies View Related

Help MSDB Database

May 2, 2001

I have a new server setup running sql2000 as default instance. I wanted
to move all the jobs and dts packages from another server which is running
multiple instances of sql server. I backed up and restored the msdb database
to the new server and now I can't edit any jobs. I get this error?
can't edit or delete the job that originated from MSX server.
How do I fix this problem. Any help will be appreciated.

View 1 Replies View Related

Msdb Restore Help

May 14, 2001

I am trying to restore my msdb database after rebuilding my RAID, and reinstalling sql. I can restore my user databases fine, but my msdb gives me error 3132:
The media set for database msdb' has 2 family members but only 1 are provided. All members must be provided.

I just performed a normal database backup to disk, and i was able to restore the other db's i backed up the exact same way...
I really don't want to lose all my jobs, so any help would be appreciated. thanks.

View 1 Replies View Related

MSDB Suspect

Oct 14, 2001

I'm running Win2000/SQL2000 on a Compaq CL380 Cluster Server. After a powerdown to do a physical move, the MSDB is now marked SUSPECT. I have tried the stored procedure SP_RESETSTATUS, a DBCC consistency check, and also have restored the database from backup. The database still shows MSDB is suspect. What can I do? We can't get a good backup as long as it is still this way as it depends on the SQL Agent.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved