I have an issue, and hopefully I can explain this fully enough. We
have a 3 server environment, all running SQL Server 2000 SP4 on
Windows 2000 Server. Server A, Server B, and Server C. Server A
replicates to Server B, Server B then replicates to Server C.
Server B has a database that two data files and two log files on two
separate drives. So drive D has 1 datafile and 1 log file, and drive
E has the same. Drive E is running out of disk space and drive D had
some to spare. In Enterprise Manager, I went to the Shrink Database
menu for that database, and I choosed 'Empty the file (data will
migrate to other files in the file group) option. That finished
successfully. But now I see that only 2 mb is being used, but the
database size is still 22358 mb. I have tried the other shrink
options with no luck.
So I have tried:
-Compress Pages and then truncate free space from the file
-Truncate free space from the other end of file
-Shrink file to "min size"
-I have also tried checking the 'Move pages to beginning of file
before shrinking, then retrying the steps above.
Also, we have tried shrinking the transaction table using a stored
proceedure called sp_forceshrink_log as well as a few other things we
have seen online.
After all this, the file size is still 20+ gb. My question is this: Is
there anything else we can try to free up the close to 20 gigs of
space? Also, this database is in the middle of a replicated chain,
what effect would there be in deleting the empty file in the
properties of the database. Is that even possible with replication
enabled?
Thanks for any help you can provide.
JonIf you want to shrink a log file, you should do it immediately after
you backup the transaction log. If you do it later, you will get a
warning like "Cannot shrink log file 2 (LogFile) because all logical
log files are in use." and the file will not be shrinked.
If you get a warning saying "The log was not truncated because records
at the beginning of the log are pending replication. Ensure the Log
Reader Agent is running or use sp_repldone to mark transactions as
distributed", you should see this thread, for example:
http://groups.google.com/group/comp.databases.ms-sqlserver/browse_frm/th
read/23ca52b9df791e59/
In any case, you should not delete the transaction log file (especially
if the database is in a transactional replication chain).
--
Razvan Socol
SQL Server MVP|||Thanks for your response, but the issue is not with the log file, but
the data file. I emptied the contents of one data file to another
data file on another drive. So I have 2 mb used in the file, but the
file size is 20+ gb on the physical drive. I am unable to shrink the
file size using the options found in the "Shrink Database" window. So
I am looking for alternatives to getting the data file size down.
Jon
On Feb 3, 2:42 am, "Razvan Socol" <rso...@.gmail.com> wrote:
> If you want to shrink a log file, you should do it immediately after
> you backup the transaction log. If you do it later, you will get a
> warning like "Cannot shrink log file 2 (LogFile) because all logical
> log files are in use." and the file will not be shrinked.
> If you get a warning saying "The log was not truncated because records
> at the beginning of the log are pending replication. Ensure the Log
> Reader Agent is running or use sp_repldone to mark transactions as
> distributed", you should see this thread, for example:http://groups.google.com/group/comp.databases.ms-sqlserver/browse_frm/th
> read/23ca52b9df791e59/
> In any case, you should not delete the transaction log file (especially
> if the database is in a transactional replication chain).
> --
> Razvan Socol
> SQL Server MVP
Showing posts with label explain. Show all posts
Showing posts with label explain. Show all posts
Thursday, March 29, 2012
Wednesday, March 7, 2012
Data base growth control
Please anybody can explain how to reduce MDF LDF files size
or tuneup the MS SQL Server
I'm not absolutely sure what you're after but you can change the size and growth properties of both files in Enterprise Manager: right click on the database -> Properties -> Data files and Transaction Log tab.|||Hi Ashutosh Keskar and welcome to TSDN MSSQL Forum,
or tuneup the MS SQL Server
Quote:
Originally Posted by Ashutosh Keskar
Please anybody can explain how to reduce MDF LDF files size
or tuneup the MS SQL Server
I'm not absolutely sure what you're after but you can change the size and growth properties of both files in Enterprise Manager: right click on the database -> Properties -> Data files and Transaction Log tab.|||Hi Ashutosh Keskar and welcome to TSDN MSSQL Forum,
You can also take a look at the maintenance plan - Enterprise manager -> Server -> Management -> Database Maintenance and see if you are running a job to reorg the data and index pages( may be part of your backup), there is also an option to free unused space.
I cannot guarantee it will help (there is a small chance it could make performance worse) but it is worth a look.
Regards Purple
Friday, February 24, 2012
dashboard in/with reporting services
A consultant asked if If I knew how to 'intergrate" dashboard into
reporting services.
I don't know what it is. can someone please explain.
Thanks
KenDashboard is a user interface that organizes and presents information which
is easy to read, basically it contains graphs, tables and drill down reports
in a single page. Yes it is possible to do in SSRS. Infact I have created
dashboard using SSRS and integrated in SPS using web parts..
Amarnath
"SQLKen" wrote:
> A consultant asked if If I knew how to 'intergrate" dashboard into
> reporting services.
> I don't know what it is. can someone please explain.
> Thanks
> Ken
>|||Hi Amarnath,
I am currently killing myself to finish a BI project. I could find a
dashboard creating tool in the Microsoft environment. I have tried scorecard
creator (BSM), and the SQL BI- report services. Nothing works like Cognos or
Business Objects tools (xcelcius). I will appreciate if you could share some
info on how you build the dashboard.
As a last resource I am trying to display five images against records in the
SSRS matrix. Since I am new to the Report Services, it could make it work
either.
Your information will be highly appreciated,
KG
"Amarnath" wrote:
> Dashboard is a user interface that organizes and presents information which
> is easy to read, basically it contains graphs, tables and drill down reports
> in a single page. Yes it is possible to do in SSRS. Infact I have created
> dashboard using SSRS and integrated in SPS using web parts..
> Amarnath
> "SQLKen" wrote:
> > A consultant asked if If I knew how to 'intergrate" dashboard into
> > reporting services.
> > I don't know what it is. can someone please explain.
> >
> > Thanks
> >
> > Ken
> >
> >
reporting services.
I don't know what it is. can someone please explain.
Thanks
KenDashboard is a user interface that organizes and presents information which
is easy to read, basically it contains graphs, tables and drill down reports
in a single page. Yes it is possible to do in SSRS. Infact I have created
dashboard using SSRS and integrated in SPS using web parts..
Amarnath
"SQLKen" wrote:
> A consultant asked if If I knew how to 'intergrate" dashboard into
> reporting services.
> I don't know what it is. can someone please explain.
> Thanks
> Ken
>|||Hi Amarnath,
I am currently killing myself to finish a BI project. I could find a
dashboard creating tool in the Microsoft environment. I have tried scorecard
creator (BSM), and the SQL BI- report services. Nothing works like Cognos or
Business Objects tools (xcelcius). I will appreciate if you could share some
info on how you build the dashboard.
As a last resource I am trying to display five images against records in the
SSRS matrix. Since I am new to the Report Services, it could make it work
either.
Your information will be highly appreciated,
KG
"Amarnath" wrote:
> Dashboard is a user interface that organizes and presents information which
> is easy to read, basically it contains graphs, tables and drill down reports
> in a single page. Yes it is possible to do in SSRS. Infact I have created
> dashboard using SSRS and integrated in SPS using web parts..
> Amarnath
> "SQLKen" wrote:
> > A consultant asked if If I knew how to 'intergrate" dashboard into
> > reporting services.
> > I don't know what it is. can someone please explain.
> >
> > Thanks
> >
> > Ken
> >
> >
Subscribe to:
Posts (Atom)