Home Page link  

RMS or SQL log file has grown out of control

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
RMS or SQL log file has grown out of control mbonin 04-25-2007
Posted by Ahmed Nashat on April 26, 2007, 9:03 am
Please log in for more thread options
: quoted-printable

GregDxb,

Setting Auto_Shrink on might affect performance specially if you have =
heavy transaction load (retail store for example) and/or your database =
size is not small, I don't recommend auto shrinking the database since =
the simple recovery model is enough to eliminate the unwanted increase =
in database size.


> Yes...it is happening before also with RMS 1.2..
>=20
> No need to delete and recreate the database..
> no need to back up also...
>=20
> Open store administrator
> connect to your database
> open query
>=20
> ---just run this query=20
>=20
> DBCC SHRINKFILE (2, 0)
>=20
> This is a one time process...Once done this it will ressolve your =
problem...
>=20
> run this query afterwards,
>=20
> ALTER DATABASE MYDATABASE
> SET AUTO_SHRINK ON, =20
> AUTO_UPDATE_STATISTICS ON,=20
> AUTO_CREATE_STATISTICS ON,=20
> RECOVERY SIMPLE,=20
> TORN_PAGE_DETECTION ON
>=20
> :)
>=20
>=20
> "mbonin" wrote:
>=20
>> Hi there
>>=20
>> We are currently running RMS 1.3 in a HQ environment. Recently one =
of our=20
>> stores
>> started getting a low memory error on their computer. Upon further=20
>> investigation we discovered the following: =20
>>=20
>> C:Program FilesMicrosoft SQL ServerMSSQLData
>>=20
>> the file which is called "our database name".ldf has grown to 23gigs =
and has=20
>> taken up all the memory on the computer
>>=20
>> Has anyone seen this before?
>>=20
>> This is only happeing in this one particular store.=20
>>=20
>> One possible solution is we back up the database, delete it, and re =
create a=20
>> new database from our backup file. This should make a fresh log =
file,=20
>> however it may not solve the problem of the log files exponential =
growth.
>>=20
>> Any help would be appreciated.
>>=20
>> Thanks
>> Matt
------=_NextPart_000_000C_01C78814.1BC57F80
Content-Type: text/html;
        charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3D"Century Gothic" color=3D#800000 =
size=3D2>GregDxb,</FONT></DIV>
<DIV><FONT face=3D"Century Gothic" color=3D#800000 =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Century Gothic" color=3D#800000 size=3D2>Setting =
Auto_Shrink on=20
might affect performance specially if you have heavy transaction load =
(retail=20
store for example) and/or your database size is not small, I don't =
recommend=20
auto shrinking the database since the simple recovery model is enough to =

eliminate the unwanted increase in database size.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"GregDxb" &lt;</FONT><A=20
size=3D2>GregDxb@discussions.microsoft.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;=20
wrote in message </FONT><A=20
face=3DArial=20
A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
Yes...it is=20
happening before also with RMS 1.2..<BR>&gt; <BR>&gt; No need to delete =
and=20
recreate the database..<BR>&gt; no need to back up also...<BR>&gt; =
<BR>&gt; Open=20
store administrator<BR>&gt; connect to your database<BR>&gt; open =
query<BR>&gt;=20
<BR>&gt; ---just run this query <BR>&gt; <BR>&gt; DBCC SHRINKFILE (2, =
0)<BR>&gt;=20
<BR>&gt; This is a one time process...Once done this it will ressolve =
your=20
problem...<BR>&gt; <BR>&gt; run this query afterwards,<BR>&gt; <BR>&gt; =
ALTER=20
DATABASE MYDATABASE<BR>&gt; SET&nbsp; AUTO_SHRINK ON,&nbsp; <BR>&gt;=20
AUTO_UPDATE_STATISTICS ON, <BR>&gt; AUTO_CREATE_STATISTICS ON, <BR>&gt; =
RECOVERY=20
SIMPLE, <BR>&gt; TORN_PAGE_DETECTION ON<BR>&gt; <BR>&gt;&nbsp;:)<BR>&gt; =

<BR>&gt; <BR>&gt; "mbonin" wrote:<BR>&gt; <BR>&gt;&gt; Hi =
there<BR>&gt;&gt;=20
<BR>&gt;&gt; We are currently running RMS 1.3 in a HQ environment.&nbsp; =

Recently one of our <BR>&gt;&gt; stores<BR>&gt;&gt; started getting a =
low memory=20
error on their computer.&nbsp; Upon further <BR>&gt;&gt; investigation =
we=20
discovered the following:&nbsp; <BR>&gt;&gt; <BR>&gt;&gt; C:Program=20
FilesMicrosoft SQL ServerMSSQLData<BR>&gt;&gt; <BR>&gt;&gt; the file =
which is=20
called "our database name".ldf has grown to 23gigs and has <BR>&gt;&gt; =
taken up=20
all the memory on the computer<BR>&gt;&gt; <BR>&gt;&gt; Has anyone seen =
this=20
before?<BR>&gt;&gt; <BR>&gt;&gt; This is only happeing in this one =
particular=20
store. <BR>&gt;&gt; <BR>&gt;&gt; One possible solution is we back up the =

database, delete it, and re create a <BR>&gt;&gt; new database from our =
backup=20
file.&nbsp; This should make a fresh log file, <BR>&gt;&gt; however it =
may not=20
solve the problem of the log files exponential growth.<BR>&gt;&gt; =
<BR>&gt;&gt;=20
Any help would be appreciated.<BR>&gt;&gt; <BR>&gt;&gt; =
Thanks<BR>&gt;&gt;=20
Matt</FONT></BODY></HTML>

------=
Posted by mbonin on April 26, 2007, 1:46 pm
Please log in for more thread options
Greg

Thanks for the post

we ran the DBCC shrinkfile command (also tried DBCC shrinkdatabase) but
niether of those commands actually changed the size of our log file (still 23
gigs) in the directory i pointed out earlier.

Any suggestions?

"GregDxb" wrote:

> Yes...it is happening before also with RMS 1.2..
>
> No need to delete and recreate the database..
> no need to back up also...
>
> Open store administrator
> connect to your database
> open query
>
> ---just run this query
>
> DBCC SHRINKFILE (2, 0)
>
> This is a one time process...Once done this it will ressolve your problem...
>
> run this query afterwards,
>
> ALTER DATABASE MYDATABASE
> SET AUTO_SHRINK ON,
>         AUTO_UPDATE_STATISTICS ON,
>         AUTO_CREATE_STATISTICS ON,
>         RECOVERY SIMPLE,
>         TORN_PAGE_DETECTION ON
>
> :)
>
>
> "mbonin" wrote:
>
> > Hi there
> >
> > We are currently running RMS 1.3 in a HQ environment. Recently one of our
> > stores
> > started getting a low memory error on their computer. Upon further
> > investigation we discovered the following:
> >
> > C:Program FilesMicrosoft SQL ServerMSSQLData
> >
> > the file which is called "our database name".ldf has grown to 23gigs and has
> > taken up all the memory on the computer
> >
> > Has anyone seen this before?
> >
> > This is only happeing in this one particular store.
> >
> > One possible solution is we back up the database, delete it, and re create a
> > new database from our backup file. This should make a fresh log file,
> > however it may not solve the problem of the log files exponential growth.
> >
> > Any help would be appreciated.
> >
> > Thanks
> > Matt

Posted by GregDxb on April 29, 2007, 4:58 am
Please log in for more thread options
I hope before you run the query, you must have connect you store
administrator to the right database.

I have these for so long but only thru the query I gave you was rectified.

if your are using query analyzer-->point it the database ("mystoredata")

or if you using store administrator--> connect it first then test the
database connection just to make sure it is connected properly...


after which, you run the query I gave you...

DBCC SHRINKFILE (2, 0)


Let me know still if it is not working.



"mbonin" wrote:

> Greg
>
> Thanks for the post
>
> we ran the DBCC shrinkfile command (also tried DBCC shrinkdatabase) but
> niether of those commands actually changed the size of our log file (still 23
> gigs) in the directory i pointed out earlier.
>
> Any suggestions?
>
> "GregDxb" wrote:
>
> > Yes...it is happening before also with RMS 1.2..
> >
> > No need to delete and recreate the database..
> > no need to back up also...
> >
> > Open store administrator
> > connect to your database
> > open query
> >
> > ---just run this query
> >
> > DBCC SHRINKFILE (2, 0)
> >
> > This is a one time process...Once done this it will ressolve your problem...
> >
> > run this query afterwards,
> >
> > ALTER DATABASE MYDATABASE
> > SET AUTO_SHRINK ON,
> >         AUTO_UPDATE_STATISTICS ON,
> >         AUTO_CREATE_STATISTICS ON,
> >         RECOVERY SIMPLE,
> >         TORN_PAGE_DETECTION ON
> >
> > :)
> >
> >
> > "mbonin" wrote:
> >
> > > Hi there
> > >
> > > We are currently running RMS 1.3 in a HQ environment. Recently one of our
> > > stores
> > > started getting a low memory error on their computer. Upon further
> > > investigation we discovered the following:
> > >
> > > C:Program FilesMicrosoft SQL ServerMSSQLData
> > >
> > > the file which is called "our database name".ldf has grown to 23gigs and
has
> > > taken up all the memory on the computer
> > >
> > > Has anyone seen this before?
> > >
> > > This is only happeing in this one particular store.
> > >
> > > One possible solution is we back up the database, delete it, and re create
a
> > > new database from our backup file. This should make a fresh log file,
> > > however it may not solve the problem of the log files exponential growth.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks
> > > Matt

Similar ThreadsPosted
Sales Data .bck file & how to append it to newly created file May 29, 2007, 10:52 pm
HQ Pricing Control January 6, 2006, 6:53 pm
Logic Control and USB January 22, 2006, 10:20 pm
More control over taxation November 8, 2006, 10:11 pm
Discount Control July 2, 2007, 6:36 am
Control Codes March 21, 2008, 9:46 pm
Stock Control How to...???? August 18, 2008, 6:59 am
Inventory Control Question April 5, 2008, 3:50 pm
HQ Item Control - CACHE and AUTOGENERATE March 2, 2006, 5:15 am
HQEventLog & TimeStampLog size out of control! May 16, 2006, 11:44 am

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap