? orus casino? bodog? ruleta? luckia? betano? sportium? spin casino? stakes? 3 reyes? 888? lottoland? coolbet? 777 casino? gana777? betfair? bwin? yak casino? ivy casino? oddschecker? red casino? netbet? william hill? vip casino? rey casino? marathonbet? dafabet? sol casino? 1bet? winland? bet777? parimatch? 18bet? 888casino? campobet? mostbet? ganabet? rushbet? betcris? betsson? lucky? novibet? winner? winpot? betmaster? betmexico? cancun? playcity? strendus? pokerstars? codere? caliente? fun88? bbrbet? 1win? 10bet? betway? pin up? spinbet? 7cslot? pickwin? spin bet? mr fortune? w88? pragmatic? gamdom? crasher? jojobet? betmex? bcasino? foliatti? winner mx? bets 10? big bola? bet master? inbet? 7slots? lucky day? m777? mexplay? luckydays? bet caliente? 1x? plinko

Forum


HomeHomePublicPublicDevelopmentDevelopmentSQL database SQL database
Previous
 
Next
New Post
3/26/2013 4:49 AM
 

I have 6 dnn websites, where I have copied same isntallation and modified it. Thereby I am using too much SQL database space. How can I minimize data space used? Hope you can help. 

database 1 = 92,13 mb

database 2 = 91,19 mb
database 3 = 89,25 mb

database 4 = 87,56 mb
database 5 = 101,38 mb
database 6 = 78,81 mb

 
New Post
3/26/2013 5:09 AM
 

Hi Benzo,

First I have to say that the sizes you have listed are not big. Maybe you can reduce a bit but they have very reasonable sizes.

In any case you can try running some db cleanup scripts.

1 - First run this one so you can find the data and log files sizes:

SELECT  (SIZE / CONVERT(REAL, 1048576/(SELECT LOW FROM master.dbo.spt_values WHERE number = 1 AND type = 'E' ))) as SizeInMB,
Name, 
DB_NAME() AS DataBaseName, 
Filename 
FROM sysfiles


2 - Then to try to reduce their sizes, you can run the next script twice, once for the data file and once for the log file:

dbcc shrinkfile( [NAME] ,1)

where you will replace [NAME] with the name information listed on the first query above.

Give it a try and see how it goes. I would strongly recommend backing up the databases before doing this. It is safer.

Cheers,

Aderson


 
New Post
3/26/2013 5:14 AM
 
Aderson wrote:

Hi Benzo,

First I have to say that the sizes you have listed are not big. Maybe you can reduce a bit but they have very reasonable sizes.

In any case you can try running some db cleanup scripts.

1 - First run this one so you can find the data and log files sizes:

SELECT  (SIZE / CONVERT(REAL, 1048576/(SELECT LOW FROM master.dbo.spt_values WHERE number = 1 AND type = 'E' ))) as SizeInMB,
Name, 
DB_NAME() AS DataBaseName, 
Filename 
FROM sysfiles


2 - Then to try to reduce their sizes, you can run the next script twice, once for the data file and once for the log file:

dbcc shrinkfile( [NAME] ,1)

where you will replace [NAME] with the name information listed on the first query above.

Give it a try and see how it goes. I would strongly recommend backing up the databases before doing this. It is safer.

Cheers,

Aderson


 Thank you Aderson :) 

Okay, my hoster says that I am using unnormally high amount of SQL dataspace, which he said is not normal for a website. Thereby I am paying a lot for the SQL space. 

Would I need less space, if I have created all sites in one? Meaning if I have made more portals in single DNN installation?

Or would I need less space, if I have used some language pack? to translate the content instead of making 6 websites? 


Best regards

Benzo

 
Previous
 
Next
HomeHomePublicPublicDevelopmentDevelopmentSQL database SQL database



Try FREE
30 days money back guaranteed