Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Forum Memory Usage
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

Etymon
Advanced Member

United States
2396 Posts

Posted - 29 August 2008 :  05:19:44  Show Profile  Visit Etymon's Homepage
quote:
Originally posted by cult_of_frank

That looks pretty handy, actually... so I can pop this code in and archive for a year and it will break it into incremental pieces? Why are months 72 though?



You'll see that the drop down starts out first presenting you with 52 weeks starting with 1 week and ending with 52 weeks. Then the list will also present you with 72 months starting with 1 month and ending with 72 months.

If your forum is just a year old and relatively small, then you can start out with either months or weeks.

If you start with months, see if it takes a while to process the posts. If it takes a while switch to weeks, because it will only take longer as you get closer to your current posts.

If you start with weeks, then start at week 52 to get all the posts from that week to as old as possible. Then select week 51 to get the posts created between week 51 to week 52 ... and so on.

If you select week 1, then you are selecting all of your posts. That's not the idea, and is worse than if you did not use the code. You could cause duplicates by selecting that first off the bat. Start out with the higher number of weeks and work toward the lower.

If you have an older site, and you think the month selection is too large of a denomination and you think you may need more weeks further back, then just increase for counter = 1 to 52 to something higher. The same is true for increasing the amount of months in the code.

I start out with the months. If everything is going smooth, then I stay with months, but if I get into a really slow spot that I think is iffy regarding timing out, then I switch to weeks. If weeks get iffy, then I add another routine to include days. And, so on for hours if weeks get slow too.<

Edited by - Etymon on 29 August 2008 05:27:12
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 August 2008 :  10:59:33  Show Profile  Send ruirib a Yahoo! Message
Ok, you will need to create this stored procedure, by running the script in your tool. I'll post the update script in a few minutes, I'm tweaking the last details:


CREATE PROCEDURE [usp_updateCounts]
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

/* Update Forum Topic Counts */

CREATE TABLE #F_T_COUNT (
FORUM_ID int,
T_COUNT int
);

UPDATE FORUM_FORUM SET F_TOPICS = 0;

INSERT INTO #F_T_COUNT
SELECT FORUM_ID, COUNT(FORUM_ID) FROM FORUM_TOPICS WHERE T_STATUS<=1 GROUP By FORUM_ID ;

UPDATE FORUM_FORUM SET F_TOPICS = T_COUNT FROM FORUM_FORUM F INNER JOIN #F_T_COUNT T ON T.FORUM_ID=F.FORUM_ID;


/* Update Forum Archived Topics Count */

DELETE FROM #F_T_COUNT;

UPDATE FORUM_FORUM SET F_A_TOPICS = 0;

INSERT INTO #F_T_COUNT
SELECT FORUM_ID, COUNT(FORUM_ID) FROM FORUM_A_TOPICS WHERE T_STATUS<=1 GROUP By FORUM_ID ;

UPDATE FORUM_FORUM SET F_A_TOPICS = T_COUNT FROM FORUM_FORUM F INNER JOIN #F_T_COUNT T ON T.FORUM_ID=F.FORUM_ID;

DROP TABLE #F_T_COUNT;


/* Update Topic Replies Counts now */

CREATE TABLE #T_R_COUNT (
TOPIC_ID int,
R_COUNT int
);

INSERT INTO #T_R_COUNT
SELECT TOPIC_ID, COUNT(REPLY_ID) FROM FORUM_REPLY WHERE R_STATUS<=1 GROUP BY TOPIC_ID ;

UPDATE FORUM_TOPICS SET T_REPLIES = 0 WHERE T_STATUS<=1;

UPDATE FORUM_TOPICS SET T_REPLIES = R_COUNT FROM FORUM_TOPICS T INNER JOIN #T_R_COUNT TR ON T.TOPIC_ID = TR.TOPIC_ID
WHERE T.T_STATUS<=1;

/* Update Archived Topics Replies Count Now */

DELETE FROM #T_R_COUNT;

INSERT INTO #T_R_COUNT
SELECT TOPIC_ID, COUNT(REPLY_ID) FROM FORUM_A_REPLY GROUP BY TOPIC_ID;

UPDATE FORUM_A_TOPICS SET T_REPLIES = 0;

UPDATE FORUM_A_TOPICS SET T_REPLIES = R_COUNT FROM FORUM_A_TOPICS T INNER JOIN #T_R_COUNT TR ON T.TOPIC_ID = TR.TOPIC_ID;

DROP TABLE #T_R_COUNT;

/* Update Last post Date */

CREATE TABLE #T_POST_DATA (
TOPIC_ID int,
LAST_POST nvarchar(14)
);

INSERT INTO #T_POST_DATA
SELECT TOPIC_ID, MAX(R_DATE) FROM FORUM_REPLY WHERE R_STATUS<=1 GROUP BY TOPIC_ID;

UPDATE FORUM_TOPICS SET T_LAST_POST = LAST_POST FROM FORUM_TOPICS INNER JOIN #T_POST_DATA PT ON FORUM_TOPICS.TOPIC_ID = PT.TOPIC_ID;

DELETE FROM #T_POST_DATA;

UPDATE FORUM_TOPICS SET T_LAST_POST=T_DATE, T_LAST_POST_AUTHOR=T_AUTHOR WHERE T_REPLIES=0;

/* Update Last post Date */

INSERT INTO #T_POST_DATA
SELECT TOPIC_ID, MAX(R_DATE) FROM FORUM_A_REPLY GROUP BY TOPIC_ID;

UPDATE FORUM_A_TOPICS SET T_LAST_POST = LAST_POST FROM FORUM_A_TOPICS T INNER JOIN #T_POST_DATA TP ON T.TOPIC_ID = TP.TOPIC_ID;

UPDATE FORUM_A_TOPICS SET T_LAST_POST=T_DATE WHERE T_REPLIES=0;

DROP TABLE #T_POST_DATA;
/* Now find the reply ID for the posts that have more than 0 replies */

CREATE TABLE #T_L_REPLY_ID (
TOPIC_ID int,
REPLY_ID int
);

CREATE TABLE #T_L_A_REPLY_ID (
TOPIC_ID int,
REPLY_ID int
);

INSERT INTO #T_L_REPLY_ID
SELECT T.TOPIC_ID, MAX(REPLY_ID) FROM FORUM_REPLY R INNER JOIN FORUM_TOPICS T ON R.TOPIC_ID=T.TOPIC_ID
WHERE T.T_LAST_POST=R_DATE AND T_STATUS<=1 GROUP BY T.TOPIC_ID;

UPDATE FORUM_TOPICS SET T_LAST_POST_REPLY_ID = REPLY_ID FROM FORUM_TOPICS T INNER JOIN #T_L_REPLY_ID TL ON TL.TOPIC_ID = T.TOPIC_ID;

DELETE FROM #T_L_REPLY_ID;

/* Now find the reply ID for the posts that have more than 0 replies in archived topics */

INSERT INTO #T_L_A_REPLY_ID
SELECT T.TOPIC_ID, MAX(REPLY_ID) FROM FORUM_A_REPLY R INNER JOIN FORUM_A_TOPICS T ON R.TOPIC_ID=T.TOPIC_ID
WHERE T.T_LAST_POST=R_DATE GROUP BY T.TOPIC_ID;

UPDATE FORUM_A_TOPICS SET T_LAST_POST_REPLY_ID = REPLY_ID FROM FORUM_A_TOPICS T INNER JOIN #T_L_REPLY_ID TL ON TL.TOPIC_ID = T.TOPIC_ID;


/* Now found the author ID for the last reply */

CREATE TABLE #T_L_REPLY_AUTHOR(
TOPIC_ID int,
AUTHOR int
);


INSERT INTO #T_L_REPLY_AUTHOR
SELECT T.TOPIC_ID, R.R_AUTHOR FROM FORUM_TOPICS T INNER JOIN FORUM_REPLY R ON T.TOPIC_ID=R.TOPIC_ID
INNER JOIN #T_L_REPLY_ID ON T.TOPIC_ID= #T_L_REPLY_ID.TOPIC_ID
WHERE #T_L_REPLY_ID.REPLY_ID = R.REPLY_ID AND T_STATUS<=1;

UPDATE FORUM_TOPICS SET T_LAST_POST_AUTHOR = AUTHOR FROM FORUM_TOPICS T INNER JOIN #T_L_REPLY_AUTHOR TL ON TL.TOPIC_ID = T.TOPIC_ID;

DELETE FROM #T_L_REPLY_AUTHOR;

INSERT INTO #T_L_REPLY_AUTHOR
SELECT T.TOPIC_ID, R.R_AUTHOR FROM FORUM_A_TOPICS T INNER JOIN FORUM_A_REPLY R ON T.TOPIC_ID=R.TOPIC_ID
INNER JOIN #T_L_A_REPLY_ID ON T.TOPIC_ID = #T_L_A_REPLY_ID.TOPIC_ID
WHERE #T_L_A_REPLY_ID.REPLY_ID = R.REPLY_ID;

UPDATE FORUM_A_TOPICS SET T_LAST_POST_AUTHOR = AUTHOR FROM FORUM_A_TOPICS T INNER JOIN #T_L_REPLY_AUTHOR TL ON TL.TOPIC_ID = T.TOPIC_ID;

DROP TABLE #T_L_REPLY_AUTHOR;

DROP TABLE #T_L_REPLY_ID;

DROP TABLE #T_L_A_REPLY_ID;


/* Update Topic Replies Counts now */

CREATE TABLE #T_R_COUNT1 (
TOPIC_ID int,
R_COUNT int
);

INSERT INTO #T_R_COUNT1
SELECT TOPIC_ID, COUNT(REPLY_ID) FROM FORUM_REPLY WHERE R_STATUS=2 OR R_STATUS=3 GROUP BY TOPIC_ID ;

UPDATE FORUM_TOPICS SET T_UREPLIES = 0 WHERE T_STATUS<=1;

UPDATE FORUM_TOPICS SET T_UREPLIES = R_COUNT FROM FORUM_TOPICS T INNER JOIN #T_R_COUNT1 TR ON T.TOPIC_ID = TR.TOPIC_ID
WHERE T.T_STATUS<=1;

DROP TABLE #T_R_COUNT1;

/* Now to step 4 */

/* Count replies per forum */

CREATE TABLE #F_R_COUNT (
FORUM_ID int,
R_COUNT int
);

INSERT INTO #F_R_COUNT
SELECT R.FORUM_ID, COUNT(REPLY_ID) FROM FORUM_TOPICS T INNER JOIN FORUM_REPLY R On T.TOPIC_ID=R.TOPIC_ID
WHERE T.T_STATUS<=1 AND R_STATUS<=1 GROUP By R.FORUM_ID;

UPDATE FORUM_FORUM SET F_COUNT=F_TOPICS WHERE F_TYPE<>1;

UPDATE FORUM_FORUM SET F_COUNT = F_COUNT + R_COUNT FROM FORUM_FORUM F INNER JOIN #F_R_COUNT FR ON F.FORUM_ID = FR.FORUM_ID;

DELETE FROM #F_R_COUNT;

INSERT INTO #F_R_COUNT
SELECT R.FORUM_ID, COUNT(REPLY_ID) FROM FORUM_A_TOPICS T INNER JOIN FORUM_A_REPLY R On T.TOPIC_ID=R.TOPIC_ID GROUP By R.FORUM_ID;

UPDATE FORUM_FORUM SET F_A_COUNT=F_A_TOPICS WHERE F_TYPE<>1;

UPDATE FORUM_FORUM SET F_A_COUNT = F_A_COUNT + R_COUNT FROM FORUM_FORUM F INNER JOIN #F_R_COUNT FR ON F.FORUM_ID = FR.FORUM_ID

DROP TABLE #F_R_COUNT;

/* Update Last Post Per Forum */

CREATE TABLE #F_POST_DATA (
FORUM_ID int,
LAST_POST varchar(50)
);


INSERT INTO #F_POST_DATA
SELECT FORUM_ID, MAX(T_LAST_POST) FROM FORUM_TOPICS WHERE T_STATUS<=1 GROUP BY FORUM_ID;

UPDATE FORUM_FORUM SET F_LAST_POST = LAST_POST FROM FORUM_FORUM F INNER JOIN #F_POST_DATA FP ON F.FORUM_ID = FP.FORUM_ID;

DROP TABLE #F_POST_DATA;


/* Update Last Post TOPIC_ID */


CREATE TABLE #F_TOPIC_ID (
FORUM_ID int,
TOPIC_ID int
);

INSERT INTO #F_TOPIC_ID
SELECT F.FORUM_ID, MAX(T.TOPIC_ID) FROM FORUM_FORUM F INNER JOIN FORUM_TOPICS T On F.FORUM_ID=T.FORUM_ID
WHERE F.F_LAST_POST = T.T_LAST_POST and T.T_STATUS<=1 GROUP BY F.FORUM_ID;

UPDATE FORUM_FORUM SET F_LAST_POST_TOPIC_ID = TOPIC_ID FROM FORUM_FORUM F INNER JOIN #F_TOPIC_ID FT ON F.FORUM_ID = FT.FORUM_ID;

/* Now Update for Author ID */

UPDATE FORUM_FORUM SET F_LAST_POST_AUTHOR=T_LAST_POST_AUTHOR
FROm ((FORUM_FORUM F INNER JOIN #F_TOPIC_ID ON F.FORUM_ID=#F_TOPIC_ID.FORUM_ID) INNER JOIN FORUM_TOPICS T On #F_TOPIC_ID.TOPIC_ID=T.TOPIC_ID)

DROP TABLE #F_TOPIC_ID;

CREATE TABLE #T_TOPICS (
COUNT_ID int,
TOPICS int,
A_TOPICS int,
POSTS int,
A_POSTS int
);

INSERT INTO #T_TOPICS
SELECT 1, SUM(F_TOPICS), SUM(F_A_TOPICS),SUM(F_COUNT),SUM(F_A_COUNT) FROM FORUM_FORUM WHERE F_TYPE<>1;

UPDATE FORUM_TOTALS SET T_COUNT = TOPICS, T_A_COUNT = A_TOPICS, P_COUNT=POSTS, P_A_COUNT=A_POSTS
FROM FORUM_TOTALS FT INNER JOIN #T_TOPICS TT ON FT.COUNT_ID=TT.COUNT_ID;

DROP TABLE #T_TOPICS;

CREATE TABLE #T_MEMBERS (
COUNT_ID int,
MEMBERS int
);

INSERT INTO #T_MEMBERS
SELECT 1, COUNT(MEMBER_ID) FROM FORUM_MEMBERS;

UPDATE FORUM_TOTALS SET U_COUNT = MEMBERS FROM FORUM_TOTALS FT INNER JOIN #T_MEMBERS TM ON FT.COUNT_ID=TM.COUNT_ID;

DROP TABLE #T_MEMBERS;

End



Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 August 2008 :  11:52:45  Show Profile  Send ruirib a Yahoo! Message
Ok, to complete the code needed for a new archiving function, after creating the stored procedure, replace the subprocedure <b>subArchiveStuff</b>, in admin_forums.asp by the one posted here.
This will only work for your replies table structure and for topics and a_topics tables with the exact same structure. Of course, it's good only for SQL Server DBs.

Sub subArchiveStuff(fdateolderthan)
set Server2 = Server
Server2.ScriptTimeout = 10000
Dim fIDSQL
Dim drs,delRep

Set cmd = CreateObject("ADODB.Command")
Set cmd.ActiveConnection = my_conn
'#### create FORUM_ID clause
rqID = request("id")
on error resume next
testID = cLng(rqID)
if err.number = 0 then
if rqID <> "-1" then
fIDSQL = " AND " & strTablePrefix & "TOPICS.FORUM_ID=" & rqID
else
fIDSQL = ""
end if
err.clear
else
fIDSQL = " AND " & strTablePrefix & "TOPICS.FORUM_ID IN (" & rqID & ")"
err.clear
end if
'on error goto 0
'#### Get the replies to Archive

on error resume next

strSql = "BEGIN TRAN"
cmd.CommandText = strSql
cmd.Execute

If Err.Number <> 0 then

Response.Write "<br> Error while initiating transactions. Archive failed.<br>"
Response.End

End If

'Now archive replies

strSQL = "INSERT INTO " & strArchiveTablePrefix & "REPLY (CAT_ID,FORUM_ID,TOPIC_ID,REPLY_ID,R_STATUS,R_MAIL,R_AUTHOR,R_MESSAGE,R_DATE," & _
"R_IP,R_LAST_EDIT,R_LAST_EDITBY,R_SIG) "
strSQL = strSql & "SELECT R.CAT_ID, R.FORUM_ID, R.TOPIC_ID,R.REPLY_ID,R.R_STATUS,R.R_MAIL,R.R_AUTHOR,R.R_MESSAGE," &_
"R.R_DATE,R.R_IP,R.R_LAST_EDIT,R.R_LAST_EDITBY,R.R_SIG FROM " & strTablePrefix & "REPLY R INNER JOIN " & strTablePrefix & _
"TOPICS ON R.TOPIC_ID=" & strTablePrefix & "TOPICS.TOPIC_ID"
strSQl = strSql & " WHERE T_LAST_POST <= '" & fdateolderthan & "'" & fIDSQL
strSQL = strSQL & " AND T_ARCHIVE_FLAG <> 0"

cmd.CommandText = strSql
cmd.Execute lngRecs,, 1 + 128

'Response.Write strsQL & "<br />"

If Err.Number <> 0 then

cmd.CommandText = "ROLLBACK TRAN"
cmd.Execute
Response.Write "<br> Error while inserting replies into archive table. Archive failed.<br>"
Response.Write"<br> The actual error message was: <br>"
Response.Write Err.Description
Response.End
Else
Response.Write "<br>" & lngRecs & " replies moved into the archive tables...<br>"
End If

'Delete these replies from the live table...

strSql = "DELETE FROM " & strTablePrefix & "REPLY FROM " & strTablePrefix & "REPLY INNER JOIN " & strArchiveTablePrefix & "REPLY ON "
strSql = strSql & strTablePrefix & "REPLY.REPLY_ID=" & strArchiveTablePrefix & "REPLY.REPLY_ID"

cmd.CommandText = strSql
cmd.Execute lngRecs,, 1 + 128


'Response.Write strsQL & "<br />"

If Err.Number <> 0 then

cmd.CommandText = "ROLLBACK TRAN"
cmd.Execute
Response.Write "<br> Error while deleting replies from the live table. Archive failed.<br>"
Response.Write"<br> The actual error message was: <br>"
Response.Write Err.Description
Response.End
Else
Response.Write "<br>" & lngRecs & " replies deleted from the live tables...<br>"
End If


'ok, this can be done...

'#### Update FORUM archive date
strsql = "UPDATE " & strTablePrefix & "FORUM SET F_L_ARCHIVE= '" & fdateolderthan & "'"
on error resume next
testID = cLng(rqID)
if err.number = 0 then
if rqID <> "-1" then
strSQL = strSql & " WHERE FORUM_ID=" & rqID
end if
err.clear
else
strSQL = strSql & " WHERE FORUM_ID IN (" & rqID & ")"
err.clear
end if
on error goto 0

my_conn.execute(strsql),,adCmdText + adExecuteNoRecords

'#### Archive the topics....

strsql = "INSERT INTO " & strArchiveTablePrefix & "TOPICS SELECT * FROM " & strTablePrefix & "TOPICS "
strsql = strSql & "WHERE T_LAST_POST < '" & fdateolderthan & "'" & fIDSQL
strSQL = strSQL & " AND T_ARCHIVE_FLAG <> 0 "

cmd.CommandText = strSql
cmd.Execute lngRecs,, 1 + 128


'Response.Write strsQL & "<br />"

If Err.Number <> 0 then

cmd.CommandText = "ROLLBACK TRAN"
cmd.Execute
Response.Write "<br> Error while moving topics into the archive table. Archive failed.<br>"
Response.Write"<br> The actual error message was: <br>"
Response.Write Err.Description
Response.End
Else
Response.Write "<br>" & lngRecs & " topics moved into the archive tables...<br>"
End If


'Now delete the topics

strsql = "DELETE FROM " & strTablePrefix & "TOPICS WHERE T_LAST_POST < '" & fdateolderthan & "'" & fIDSQL
strSQL = strSQL & " AND T_ARCHIVE_FLAG <> 0 "

cmd.CommandText = strSql
cmd.Execute lngRecs,, 1 + 128


'Response.Write strsQL & "<br />"

If Err.Number <> 0 then

cmd.CommandText = "ROLLBACK TRAN"
cmd.Execute
Response.Write "<br> Error while deleting topics from the live table. Archive failed.<br>"
Response.Write"<br> The actual error message was: <br>"
Response.Write Err.Description
Response.End
Else
Response.Write "<br>" & lngRecs & " topics deleted from the live tables...<br>"
End If

cmd.CommandText = "COMMIT TRAN"
cmd.Execute


'Now update counts

strSQL = "EXEC usp_updateCounts"

cmd.CommandText = strsQl
cmd.Execute

Response.Write "<br>Forum Counts Updated<br>"

'response.write(" <br /><center><a href=""admin_forums.asp"">Click Here</a> to return to Forums Delete/Archive Admin</center><br />" & vbNewLine)

on error goto 0
End Sub

As I said, this is much less prone to timeouts and in case of errors, it will revert the changes done, as it uses transactions.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Etymon
Advanced Member

United States
2396 Posts

Posted - 29 August 2008 :  14:42:45  Show Profile  Visit Etymon's Homepage
Hey! Thanks Rui! <
Go to Top of Page

cult_of_frank
Starting Member

Canada
20 Posts

Posted - 29 August 2008 :  16:02:35  Show Profile  Visit cult_of_frank's Homepage
Wow, I can't believe you went to all that effort for me, that's incredible. I managed to figure out how to install a stored procedure, did it, modded my admin_forums.asp, and ran it. It worked beautifully. I didn't realize the other method left dupes in the archives, I might have to go and look, but otherwise I am very impressed. Thank you very much!

Etymon, I didn't get the chance to use your script, but also thanks for posting that and trying to help. I definitely would've gone that route if I'd been unable to use stored procedures.

Now to see if that will solve memory issues...<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 August 2008 :  16:30:38  Show Profile  Send ruirib a Yahoo! Message
Glad it worked well . I didn't do it all anew, had to change some stuff I had done before.

I've done some work for SQL Server based forums, to improve performance, on the archiving, count updating and searching areas. Some things I posted as mods, others can't be posted as mods, as they have requirements that not all users are able to meet. Lately, with new MySQL versions, some things can be applied to MySQL, others not that much.

Anyway, what matters is that it worked for you .<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 11 August 2009 :  12:47:05  Show Profile
Rui,
I am having a similar issue as cut_of_frank did. What does your code do? Does it free disk space? I have 200MB disk space and can not be increased and I am getting the error when archiving or replying to a post (no space to allocate etc).
Thanks
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2009 :  17:49:06  Show Profile  Send ruirib a Yahoo! Message
Hi,

No, unfortunately it does not free disk space. It just archives stuff much more efficiently than the standard Snitz code.
Does the 200 MB limit include log file size?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 11 August 2009 :  18:03:38  Show Profile
Yes, it deos. It is about 30-40MB allocated for logs. Both data and log spaces are near full.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2009 :  18:06:40  Show Profile  Send ruirib a Yahoo! Message
What recovery model are you using for the log? Make sure you have the Simple model chosen.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 11 August 2009 :  18:14:55  Show Profile
LOL
I have no idea! The host doesn't allow Enterprise Manager or any other SQL management software "for security reason". I can only use their own SQL admin.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2009 :  18:33:13  Show Profile  Send ruirib a Yahoo! Message
Well I would say that you need to find that out ASAP. I also begin to think that you may have outgrown your host / hosting package?!

You can try to set your recovery model to simple by using:

ALTER DATABASE databasename SET RECOVERY SIMPLE


See if it makes any difference.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2009 :  18:42:07  Show Profile  Send ruirib a Yahoo! Message
Also, shrink the database after setting the recovery model:

DBCC SHRINKDATABASE (databasename)


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 11 August 2009 :  20:00:29  Show Profile
Thanks. This is after changing the recovery model and shrinking.

Database [ db ]
Database size
Database size : 190.05 MB Unallocated space : 0.79 MB

Database space used
Reserved : 193304 KB Data : 186280 KB
Index : 5744 KB Unused : 1280 KB

Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 11 August 2009 :  20:13:37  Show Profile
After truncating FORUM_A_REPLIES:

Database size
Database size : 191.06 MB Unallocated space : 112.75 MB

Database space used
Reserved : 78656 KB Data : 71792 KB
Index : 5736 KB Unused : 1128 KB

Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07