|
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
|