nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Database Log File Truncation, Database log file truncation
kumar
post Aug 4 2008, 05:49 AM
Post #1





Group: Verified NS Member
Posts: 5
Joined: 29-July 08
Member No.: 1,673



Hi All,
I have received "Disk Space Near Max" message from the network solutions,
so how can i truncate the database log file.
I user the simple recovery model and growth size=1024mb.
Please provide me the detail steps.


Thanks,
kumar.
Go to the top of the page
 
+Quote Post
Corey
post Aug 4 2008, 10:56 AM
Post #2


Network Solutions Technical Support


Group: Administrators
Posts: 61
Joined: 23-June 08
Member No.: 1,316



QUOTE (kumar @ Aug 4 2008, 06:59 AM) *
Hi All,
I have received "Disk Space Near Max" message from the network solutions,
so how can i truncate the database log file.
I user the simple recovery model and growth size=1024mb.
Please provide me the detail steps.


Thanks,
kumar.


To truncate your MS SQL log file you can run the query:

CODE
BACKUP LOG db_name WITH TRUNCATE_ONLY


within your SQL management program (replacing db_name with your database name). Alternatively you can use the same query within an ASP file by inserting the line:

CODE
msSQL="BACKUP LOG " & db_name & " WITH TRUNCATE_ONLY"


after initiating a database connection.
Go to the top of the page
 
+Quote Post
kumar
post Aug 7 2008, 01:44 AM
Post #3





Group: Verified NS Member
Posts: 5
Joined: 29-July 08
Member No.: 1,673



QUOTE (Corey @ Aug 4 2008, 11:06 AM) *
To truncate your MS SQL log file you can run the query:

CODE
BACKUP LOG db_name WITH TRUNCATE_ONLY


within your SQL management program (replacing db_name with your database name). Alternatively you can use the same query within an ASP file by inserting the line:

CODE
msSQL="BACKUP LOG " & db_name & " WITH TRUNCATE_ONLY"


after initiating a database connection.



I executed the query in sqlserver 2005, but i didn't endup with the solution. I didn't find any change in log file. Is there anyother way to truncate the log file??


Thanks,
Kumar
Go to the top of the page
 
+Quote Post
Corey
post Aug 7 2008, 09:23 AM
Post #4


Network Solutions Technical Support


Group: Administrators
Posts: 61
Joined: 23-June 08
Member No.: 1,316



That is the only way I know of to truncate the log file for MS SQL. I did take a look at your database and currently your data file (not the log) is using 55MB, and the log is only using 1MB.

You have set your database quota to 50mb in your networksolutions.com account manager for the MS SQL db in question, and this is the reason why you cannot currently write to the database. To fix this issue you can either remove data from your database or raise the quota allocated to it from your database manager in your Network Solutions account.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2009 Time is now: 21st November 2009 - 06:28 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates