Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Why is the DNN sql database size so big?
Previous Previous
 
Next Next
New Post 2/16/2008 10:11 AM
User is offline Ton Hermes
230 posts
www.watermansite.com
9th Ranked


Re: Why is the DNN sql database size so big? 

Hi Sacha,

I have run this sql command at my database.
However, I get the message "error in command"
My database is due some reason increased from 25 till 75 Mb.
I like to figure out what is going wrong.
Knowledge about handling the database with sql commands is zero.
Maybe you can provide me with the good sql command sand some commands to repair the database?

With regards, Ton Hermes


Art is hard work, inspiration is the cream on top of it. See my watercolors at www.watermansite.com
 
New Post 2/17/2008 12:11 AM
User is offline Sebastian Leupold
14228 posts
www.deutschnetnuke.de
1st Ranked












Re: Why is the DNN sql database size so big? 

Ton,

make sure, to copy the text and save it in a text editor using encoding UTF-8 before executing it.

did you check in database adminsitration, that the database has been supersized and not the database transaction log, which needs to be truncated on frequent backups?


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 2/17/2008 5:36 AM
User is offline Ton Hermes
230 posts
www.watermansite.com
9th Ranked


Re: Why is the DNN sql database size so big? 

Hi Sebastian,

after truncate the event and site log I got this messages.
EventLog 0  0 KB 0 KB 0 KB 0 KB
SiteLog 1  40 KB 8 KB 32 KB 0 KB

After truncate with the database tool of the web host the database is 72 Mb
Normal the database has a size of 25 Mb

Then I copied and paste the example command of the DNN post to Windows notepad.
So I got only pure ascii
Then I copied and paste the command in the sql box of the DNN application.
After a click on "execute" I got the following message.

There is an error in your query!

Then I set the option "execute as a script" on true.
That gives the message below.

Do you have any suggestion how to "clean" the database?
With regards, Ton Hermes

 

System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'try'. EXECUTE cannot be used as a source when inserting into a table variable. Incorrect syntax near the keyword 'END'. 'ERROR_NUMBER' is not a recognized function name. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) BEGIN try DECLARE @table_name VARCHAR(500) ; DECLARE @schema_name VARCHAR(500) ; DECLARE @tab1 TABLE( tablename VARCHAR (500) collate database_default , schemaname VARCHAR(500) collate database_default ); DECLARE @temp_table TABLE ( tablename sysname , row_count INT , reserved VARCHAR(50) collate database_default , data VARCHAR(50) collate database_default , index_size VARCHAR(50) collate database_default , unused VARCHAR(50) collate database_default ); INSERT INTO @tab1 SELECT t1.name , t2.name FROM sys.tables t1 INNER JOIN sys.schemas t2 ON ( t1.schema_id = t2.schema_id ); DECLARE c1 CURSOR FOR SELECT t2.name + '.' + t1.name FROM sys.tables t1 INNER JOIN sys.schemas t2 ON ( t1.schema_id = t2.schema_id ); OPEN c1; FETCH NEXT FROM c1 INTO @table_name; WHILE @@FETCH_STATUS = 0 BEGIN SET @table_name = REPLACE(@table_name, '[',''); SET @table_name = REPLACE(@table_name, ']',''); -- make sure the object exists before calling sp_spacedused IF EXISTS(SELECT OBJECT_ID FROM sys.objects WHERE OBJECT_ID = OBJECT_ID(@table_name)) BEGIN INSERT INTO @temp_table EXEC sp_spaceused @table_name, false ; END FETCH NEXT FROM c1 INTO @table_name; END; CLOSE c1; DEALLOCATE c1; SELECT t1.* , t2.schemaname FROM @temp_table t1 INNER JOIN @tab1 t2 ON (t1.tablename = t2.tablename ) ORDER BY schemaname,tablename; END try BEGIN catch SELECT -100 AS l1 , ERROR_NUMBER() AS tablename , ERROR_SEVERITY() AS row_count , ERROR_STATE() AS reserved , ERROR_MESSAGE() AS data , 1 AS index_size, 1 AS unused, 1 AS schemaname END catch


Art is hard work, inspiration is the cream on top of it. See my watercolors at www.watermansite.com
 
New Post 2/17/2008 10:49 AM
User is offline Sebastian Leupold
14228 posts
www.deutschnetnuke.de
1st Ranked












Re: Why is the DNN sql database size so big? 

Ton,

if the number of entries in your Eventlog, SiteLog anf SchedulerHistory are as small as stated above, the issue is due to database files. Go to management studio and try to shrink both of them.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 9/28/2008 4:14 PM
User is offline nik
2 posts
10th Ranked


Re:  

Hi , i wanted to ask you ,which is the minimum size of mssql database for installing dnn 4.9, because when i install it on my webhost

it takes 1. to much time like hours and after db is full. I have a mssql db of 100megs. Its that normal?

thanks in advance

nik

 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Why is the DNN sql database size so big?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com
ADefWebserver.com
DotNetNuke® Module Development Help Website
ADefWebserver.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP